OFFSET
1,1
EXAMPLE
MAPLE
with(numtheory):nn:=1000:T:=array(1..1000):k:=1:for x from 1 to nn do: p:=4*x+1:if
type(p, prime)=true then T[k]:=p:k:=k+1:else fi:od:pr:=1:for n from 1 to k do:
pp:=pr*T[n] :ind:=0:for q from 1 to pp while (ind=0) do: z:=q^2+1:if irem(z, pp)=0
and ind = 0 then ind: = 1:pr:=pp:print( q):else fi:od:od:
# Alternative
PP:= select(isprime, [seq(i, i=5..200, 4)]):
f:= n -> min(map(t -> rhs(op(t)), [msolve(x^2+1, convert(PP[1..n], `*`))])):
map(f, [$1..20]); # Robert Israel, Feb 01 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jan 28 2011
EXTENSIONS
More terms from Robert Israel, Feb 01 2019
STATUS
approved