say "{+$_} matching numbers:\n{.batch(10)».fmt('%3d').join: "\n"}" given (^1000).grep: { .is-prime and $_ eq .flip };
20 matching numbers: 2 3 5 7 11 101 131 151 181 191 313 353 373 383 727 757 787 797 919 929
Last updated 3 years ago