OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
P:= x^4 - x^3 - x^2 - x - 1:
select(p -> Irreduc(P) mod p, [seq(ithprime(i), i=1..1000)]);
PROG
(Python)
from itertools import islice
from sympy import Poly, nextprime
from sympy.abc import x
def A370830_gen(): # generator of terms
p = 2
while True:
if Poly(x*(x*(x*(x-1)-1)-1)-1, x, modulus=p).is_irreducible:
yield p
p = nextprime(p)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Mar 13 2024
STATUS
approved