OFFSET
1,1
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
EXAMPLE
2 is in this sequence because (2 + 1)/3 = 1 = A001597(1), and 2 and 3 are both primes.
PROG
(PARI) isOK(p) = forprime(q=2, p, if(ispower((p+1)/q), return(1))); return(0)
concat(2, select(p->isOK(p), primes(1000))) \\ Colin Barker, Aug 18 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 18 2014
EXTENSIONS
Several terms corrected by Colin Barker, Aug 18 2014
STATUS
approved