in reply to Easy way to list prime numbers 1 to 100

The truly easy way:

use Math::Pari; my $primes = PARI 'primes(25)'; print "@{$primes}\n";
The argument of Pari's primes() function is how many primes you want, not a limit.

The hard part is installing Math::Pari.

After Compline,
Zaxo