A100570 Numbers that are not the sum of a square and a semiprime.
1, 2, 3, 12, 17, 28, 32, 72, 108, 117, 297, 657
Offset: 1
Examples
From _Daniel Mikhail_, Nov 23 2020: (Start) An integer m is in this set if, for any primes, p and q, there does not exist a natural k, such that m-k^2 = p*q. Consider m=12 and all k such that k^2 < 12: k is either 0,1,4, or 9. 12 - 0 = 12 = 2*2*2*3 => not semiprime; 12 - 1 = 11 => not semiprime; 12 - 4 = 8 = 2*2*2 => not semiprime; 12 - 9 = 3 => not semiprime. Therefore, 12 is a term. (End)
Links
Programs
-
Mathematica
lim = 657; Complement[Range[lim],Select[Flatten[Outer[Plus,Select[Range[lim], PrimeOmega[#] == 2 &],Table[i^2, {i, 0, Sqrt[lim]}]]], # <= lim &]] (* Robert Price, Apr 10 2019 *)
Comments