A333635 Numbers m such that m^2 + 1 has at most 2 prime factors.
1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 19, 20, 22, 24, 25, 26, 28, 29, 30, 34, 35, 36, 39, 40, 42, 44, 45, 46, 48, 49, 50, 51, 52, 54, 56, 58, 59, 60, 61, 62, 64, 65, 66, 69, 71, 74, 76, 78, 79, 80, 84, 85, 86, 88, 90, 92, 94, 95, 96, 100
Offset: 1
Keywords
Examples
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.
References
- R. K. Guy, Unsolved Problems in Number Theory, A1.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
- Henryk Iwaniec, Almost-primes represented by quadratic polynomials, Inventiones Mathematicae 47 (2) (1978), pp. 171-188.
Crossrefs
Programs
-
Mathematica
Select[Range[100], PrimeQ[(k = #^2 + 1)] || PrimeOmega[k] == 2 &] (* Amiram Eldar, Mar 30 2020 *) Select[Range[100],PrimeOmega[#^2+1]<3&] (* Harvey P. Dale, Aug 08 2025 *)
Comments