The truly easy way:
The argument of Pari's primes() function is how many primes you want, not a limit.use Math::Pari; my $primes = PARI 'primes(25)'; print "@{$primes}\n";
The hard part is installing Math::Pari.
After Compline,
Zaxo
In reply to Re: Easy way to list prime numbers 1 to 100
by Zaxo
in thread Easy way to list prime numbers 1 to 100
by l.frankline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |