OFFSET
1,1
COMMENTS
Primes that are not in A127566.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..3000
EXAMPLE
79, 83, 89 are consecutive primes, 83^2 - 79*89 = -142. Both 141 = 3*47 and 143 = 11*13 are composite, hence 79 is a term.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[200]], 3, 1], AllTrue[Abs[ #[[2]]^2- #[[1]]*#[[3]]]+{1, -1}, CompositeQ]&]][[1]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 04 2015 *)
PROG
(Magma) [ p: p in PrimesInInterval(2, 1060) | not IsPrime(k-1) and not IsPrime(k+1) where k is Abs(q^2 - p*r) where r is NextPrime(q) where q is NextPrime(p) ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Apr 08 2007
STATUS
approved