RosettaCodeData/Task/Legendre-prime-counting-function/Raku/legendre-prime-counting-function.raku
2023-07-01 13:44:08 -04:00

7 lines
152 B
Raku

use Math::Primesieve;
my $sieve = Math::Primesieve.new;
say "10^$_\t" ~ $sieve.count: exp($_,10) for ^10;
say (now - INIT now) ~ ' elapsed seconds';