Quad-power prime seeds: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: twiddling)
Line 30: Line 30:
for 1..5 {
for 1..5 {
my $threshold = Int(1e6 * $_);
my $threshold = Int(1e6 * $_);
my $key = @qpp.first: * > $threshold, :k;
my $key = @qpps.first: * > $threshold, :k;
say "{$threshold.&cardinal.fmt: '%13s'} is the {ordinal-digit $key + 1}: {@qpps[$key].&comma}";
say "{$threshold.&cardinal.fmt: '%13s'} is the {ordinal-digit $key + 1}: {@qpps[$key].&comma}";
}</lang>
}</lang>