OFFSET
1,1
COMMENTS
First differences: 567, 32, 72, 180, 168, 48, 48, 112, 48, 162, 32, 72, 120, 120, 48, 48, 72, 48, 112, 32, ...
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
A[1]:= 2:
for n from 2 to 100 do
p:= A[n-1];
do
p:= nextprime(p);
if numtheory:-bigomega(p-A[n-1])=5 then A[n]:= p; break fi
od od:
seq(A[i], i=1..100); # Robert Israel, Nov 04 2019
MATHEMATICA
NestList[Module[{p = NextPrime@ #}, While[PrimeOmega[p - #] != 5, p = NextPrime@ p]; p] &, 2, 40] (* Michael De Vlieger, Apr 25 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 24 2017
STATUS
approved