OFFSET
1
COMMENTS
From the first 10000 evaluations (each evaluating the primality of 2 values, though at least 2200 are obvious as multiples of 5), one encounters ~5200 primes. The longest "gap" without prime encounter is 13 evaluations. By design, the procedure encounters primes loosely on the order of twice as large as those used in each evaluation.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
PROG
(PARI) v=[0, 4, 6]; p=11; forprime(q=13, , if(q-p==2, v=[v[2], v[3], p+1]; print1(isprime(v[1]+v[3]+1)||isprime(v[1]+v[3]-1), ", ")); p=q) \\ Charles R Greathouse IV, May 25 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Bill McEachen, May 25 2014
STATUS
approved