Provided by: libmath-prime-util-perl_0.73-1build1_amd64

**NAME**

primes.pl - Display all primes

**SYNOPSIS**

primes[options] [START]END

**DESCRIPTION**

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:--helpdisplays this help message Filter options, which will cause the list of primes to be further filtered to only those primes additionally meeting these conditions:--twinTwin p+2 is prime--tripletTriplet p+6 and (p+2 or p+4) are prime--quadrupletQuadruplet p+2, p+6, and p+8 are prime--cousinCousin p+4 is prime--sexySexy p+6 is prime--safeSafe (p-1)/2 is also prime--sophieSophie Germain 2p+1 is also prime--lucasLucas L_p is prime--fibonacciFibonacci F_p is prime--mersenneMersenne M_p = 2^p-1 is prime--luckyLucky p is a lucky number--palindrPalindromic p is equal to p with its base-10 digits reversed--pillaiPillai n! % p = p-1 and p % n != 1 for some n--goodGood p_n^2 > p_{n-i}*p_{n+i} for all i in (1..n-1)--cuban1Cuban (y+1) p = (x^3 - y^3)/(x-y), x=y+1--cuban2Cuban (y+2) p = (x^3 - y^3)/(x-y), x=y+2--pnp1Primorial+1 p#+1 is prime--pnm1Primorial-1 p#-1 is prime--euclidEuclid pn#+1 is prime--circularCircular all digit rotations of p are prime--panaitopolPanaitopol p = (x^4-y^4)/(x^3+y^3) for some x,y--provableEnsure all primes are provably prime 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.

**AUTHOR**

Written by Dana Jacobsen. primes.pl version 1.3 using Math::Prime::UtOctober 2019MPU::GMP 0.51 PRIMES.PL(1)