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 2 years ago