PRIMES.PL(1) | User Commands | PRIMES.PL(1) |
primes.pl - Display all primes
primes [options] [START] END
Displays all primes between the positive integers START and END, inclusive. The START and END values must be integers or simple expressions. This allows inputs like "10**500+100" or "2**64-1000" or "2 * nth_prime(560)". Additionally, if END starts with '+' then it is assumed to add to START. If only one number is given, primes up to that number are shown (START = 0).
General options:
Filter options, which will cause the list of primes to be further filtered to only those primes additionally meeting these conditions:
Note that options can be combined, e.g. display only safe twin primes. In all cases involving multiples (twin, triplet, etc.), the value returned is p -- the least value of the set.
Written by Dana Jacobsen.
October 2022 | primes.pl version 1.3 using Math::Prime::Util 0.73 and MPU::GMP 0.52 |