OFFSET
1,2
COMMENTS
Equivalently, numbers m such that m^2 + 1 is prime or semiprime.
Henryk Iwaniec proved in 1978 that this sequence is infinite (see link). By contrast, it is not known whether there are infinitely many primes of the form m^2 + 1 (or infinitely many semiprimes of that form).
The integers that have at most 2 prime factors counted with multiplicity are called almost-primes of order 2 and they are in A037143. Here, as m^2 + 1 is not a square for m > 0, all the semiprimes of this form have two distinct prime factors (A144255), and with the primes of the form m^2 + 1 (A002496), they constitute A248742.
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, A1.
LINKS
Henryk Iwaniec, Almost-primes represented by quadratic polynomials, Inventiones Mathematicae 47 (2) (1978), pp. 171-188.
EXAMPLE
10^2 + 1 = 101, which is prime, so 10 is in the sequence.
11^2 + 1 = 122 = 2 * 61, so 11 is in the sequence.
12^2 + 1 = 145 = 5 * 29, so 12 is in the sequence.
13^2 + 1 = 170 = 2 * 5 * 17, so 13 is not in the sequence.
MATHEMATICA
Select[Range[100], PrimeQ[(k = #^2 + 1)] || PrimeOmega[k] == 2 &] (* Amiram Eldar, Mar 30 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, Mar 30 2020
STATUS
approved