A266952 Least prime p such that p-2 and 6n-p and 6n+2-p are also prime, or 0 if no such prime exists.
0, 0, 7, 7, 7, 13, 7, 13, 7, 13, 19, 7, 13, 7, 13, 19, 0, 31, 7, 7, 13, 19, 31, 31, 7, 13, 7, 13, 19, 73, 31, 7, 13, 7, 7, 13, 19, 31, 31, 7, 13, 7, 13, 19, 73, 31, 7, 13, 7, 13, 19, 109, 31, 7, 13, 19, 109, 31, 109, 7, 13, 19, 61, 31, 73, 43, 199, 0, 61, 103, 73, 7, 13, 7, 13, 19, 109, 31, 7, 13, 19, 139, 31, 151, 43, 199, 0, 61, 7, 13, 19, 199, 31, 139, 43
Offset: 0
Keywords
Links
- Harvey Dubner, Twin Prime Conjectures, Journal of Recreational Mathematics, Vol. 30 (3), 1999-2000.
- Dan Zwillinger, A Goldbach Conjecture Using Twin Primes, Math. Comp. 33, No.147 (1979), p.1071.
Programs
-
PARI
A266952(n)=my(GP(n, p=2)=forprime(p=p, n+1, isprime(n*2-p)&&return(p))); for(p=1, 3*n, isprime(-2+p=GP(3*n, p))+!p&&(!p||isprime(6*n+2-p))&&return(p))
Comments