OFFSET
1,1
COMMENTS
A060735 can be thought of as multiples of primorials, up to the next prime not found in the given primorial. This sequence adds or subtracts that next prime to produce new prime values.
31 is the first prime this does not produce (other than 2).
143 is the first nonprime value that this pattern produces (other than values < 3).
Conjectured to be infinite.
FORMULA
(not in order) primorial(i) * m +- prime(i+1) where 0<m<prime(i+1).
EXAMPLE
23 is a term because 23 = 2*3*5 - 7 and it is prime.
67 is a term because 67 = 2*2*3*5 + 7 and it is prime.
PROG
(PARI) rad(n) = factorback(factorint(n)[, 1]);
lista(nn) = my(a=1, list = List()); for (n=2, nn, my(f = factor(a), p = if (a==1, 2, nextprime(vecmax(f[, 1])+1))); if (isprime(a-p), listput(list, a-p)); if (isprime(a+p), listput(list, a+p)); a = a + rad(a); ); vecsort(Set(list)); \\ Michel Marcus, Dec 14 2024
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Daniel D Gibson, Nov 14 2024
STATUS
approved