OFFSET
1,1
COMMENTS
Conjecture: This sequence contains all primes.
Conjecture: If f(n) = a(1)*a(2)*...*a(n-1) then f(n)-a(n) is the previous prime of f(n) - 1 for n > 1.
EXAMPLE
a(4) = 7 because 7 is the least prime not already in the sequence such that 5*2*3 - 7 = 30 - 7 = 23 which is prime.
MATHEMATICA
a[1]=5; a[n_]:=a[n]=(k=2; While[MemberQ[s=Array[a, n-1], k]||!PrimeQ[Times@@s-k], k=NextPrime@k]; k); Array[a, 70]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giorgos Kalogeropoulos, Jul 25 2023
STATUS
approved