OFFSET
1,1
EXAMPLE
45 is in the sequence since it is composite with 3^2 + 6^2 = 9 + 36 = 45, 9 is odd and 36 is even > 0.
MATHEMATICA
Table[If[(1 - PrimePi[n] + PrimePi[n - 1]) Sum[Sign[(Mod[i, 2] Mod[n - i + 1, 2] + Mod[i + 1, 2] Mod[n - i, 2])] (Floor[Sqrt[i]] - Floor[Sqrt[i - 1]]) (Floor[Sqrt[n - i]] - Floor[Sqrt[n - i - 1]]), {i, Floor[n/2]}] > 0, n, {}], {n, 1000}] // Flatten
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2020
STATUS
approved