OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Aug 30 2017
EXAMPLE
a(1)=23 is in the sequence because 23^2 - 23 - 1 = 505, 23^2 - 23 + 1 = 507, 23^2 + 23 - 1 = 551, 23^2 + 23 + 1 = 553 are all composite.
MAPLE
select(t -> not ormap(isprime, {t^2+t+1, t^2+t-1, t^2-t+1, t^2-t-1}), [$1..1000]);
MATHEMATICA
Select[Range@ 300, Function[t, AllTrue[t^2 + Map[Total[{t, 1} #] &, Tuples[{1, -1}, 2]], ! PrimeQ@ # &]]] (* Michael De Vlieger, Aug 29 2017 *)
PROG
(PARI) is(n)=my(n2=n^2); !isprime(n2+n+1) && !isprime(n2+n-1) && !isprime(n2-n+1) && !isprime(n2-n-1) \\ Charles R Greathouse IV, Aug 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Aug 29 2017
STATUS
approved