login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A339989
Primes that are the sum of an even square s and an odd square t such that 0 < s < t.
0
13, 29, 41, 53, 97, 137, 157, 173, 229, 233, 241, 269, 293, 313, 353, 389, 397, 421, 433, 457, 461, 541, 557, 593, 617, 641, 661, 673, 733, 769, 821, 829, 853, 857, 877, 881, 929, 941, 977, 997, 1013, 1061, 1093, 1097, 1109, 1129, 1153, 1201, 1213, 1217, 1229, 1289, 1361
OFFSET
1,1
EXAMPLE
29 is in the sequence since it is a prime such that 2^2 + 5^2 = 4 + 25 = 29, 4 is even, 25 is odd, and 0 < 4 < 25.
MATHEMATICA
Table[If[(PrimePi[n] - PrimePi[n - 1])*Sum[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, 1200}] // Flatten
CROSSREFS
Sequence in context: A141293 A339956 A352926 * A120827 A369863 A320631
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2020
STATUS
approved