OFFSET
1,1
COMMENTS
First differences: 2, 3, 5, 7, 5, 7, 2, 3, 11, 2, 7, 7, 17, 3, 2, 7, 17, 7, 3, 2, 11, 7, 2, 2, 13, 3, 5, 3, 37, 3, 5, 3, 2, 2, 5, 11, 17, 5, 3, 3, 2, 7, 13, 2, 2, 7, 3, 2, 2 (all primes).
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
MATHEMATICA
NestList[(p = 2; While[2 != PrimeOmega[q = # + p], p = NextPrime[p]]; q) &, 4, 50]
PROG
(PARI) nxt(n)=forprime(p=2, , if(bigomega(n+p)==2, return(n+p))) \\ Charles R Greathouse IV, Jan 25 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jul 17 2010
STATUS
approved