Sum of square and cube digits of an integer are primes

say ^100 .grep: { .².comb.sum.is-prime && .³.comb.sum.is-prime }

Output:

(16 17 25 28 34 37 47 52 64)

Last updated