OFFSET
0,1
COMMENTS
C1 = 'prevprime(n) followed by n followed by prevprime(n)'
C2 = 'prevprime(n) followed by n followed by nextprime(n)'
C3 = 'nextprime(n) followed by n followed by prevprime(n)'
C4 = 'nextprime(n) followed by n followed by nextprime(n)'
EXAMPLE
n=41719 -> next prime is 41729, previous prime is 41687, thus '416874171941687' and '416874171941729' and '417294171941687' and '417294171941729' are all four primes.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Oct 15 1998
STATUS
approved