OFFSET
0,1
COMMENTS
C1 = 'nextprime(n) followed by n'
C2 = 'n followed by nextprime(n)'
C3 = 'prevprime(n) followed by n'
C4 = 'n followed by prevprime(n)'
EXAMPLE
n=105501 -> next prime is 105503, previous prime is 105499, thus '105503105501' and '105501105503' and '105501105499' and '105499105501' are all four primes.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Oct 15 1998
STATUS
approved