OFFSET
1,1
COMMENTS
Numbers k such that k-1, k+1, k^2+k+1 and k^2+1 are all primes.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
For k = 6: 5, 7, 43 and 37 are prime values of the first 4 cyclotomic polynomials.
MATHEMATICA
lst={}; Do[If[PrimeQ[n-1]&&PrimeQ[n+1]&&PrimeQ[1+n+n^2]&&PrimeQ[1+n^2], AppendTo[lst, n]], {n, 10^6}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 19 2008 *)
Select[Range[10^6], Function[k, AllTrue[Cyclotomic[#, k] & /@ Range@ 4, PrimeQ]]] (* Michael De Vlieger, Jul 18 2017 *)
PROG
(PARI) is(k) = isprime(k-1) && isprime(k+1) && isprime(k^2+1) && isprime(k^2+k+1); \\ Amiram Eldar, Sep 24 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, May 07 2002
STATUS
approved