RosettaCodeData/Task/Babbage-problem/Raku/babbage-problem-2.raku

2 lines
49 B
Raku

.say and exit if $_² % 1e6 == 269696 for ^;