say([+] map {$/%%$_&&2**($/div$_)div$/*(.is-prime??-1!!$_==[*] grep {$/%%$_},1..$_)},1..++$/)xx 20