Sum of square and cube digits of an integer are primes
1..99 -> grep { .square.digits_sum.is_prime && .cube.digits_sum.is_prime }.sayOutput:
[16, 17, 25, 28, 34, 37, 47, 52, 64]Last updated
1..99 -> grep { .square.digits_sum.is_prime && .cube.digits_sum.is_prime }.say[16, 17, 25, 28, 34, 37, 47, 52, 64]Last updated