cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A048261 Numbers that are the sum of the squares of distinct primes.

Original entry on oeis.org

4, 9, 13, 25, 29, 34, 38, 49, 53, 58, 62, 74, 78, 83, 87, 121, 125, 130, 134, 146, 150, 155, 159, 169, 170, 173, 174, 178, 179, 182, 183, 194, 195, 198, 199, 203, 204, 207, 208, 218, 222, 227, 231, 243, 247, 252, 256, 289, 290, 293, 294, 298, 299, 302, 303
Offset: 1

Views

Author

Keywords

Comments

17163 is the largest of 2438 positive integers that can't be expressed as the sum of squares of distinct primes. See A121518. - T. D. Noe, Aug 04 2006

Examples

			13 = 2^2 + 3^2.
		

References

  • D. Wells, The Penguin Dictionary of Curious and Interesting Numbers, entry 17163.

Crossrefs

Cf. A024450 (sum of squares of the first n primes).

Programs

  • Mathematica
    nn=10; s={0}; Do[p=Prime[n]; s=Union[s,s+p^2], {n,nn}]; s=Select[s,0<#<=Prime[nn]^2&] (* T. D. Noe, Aug 04 2006 *)

Formula

It is easy to check that these 2438 numbers that are not the sum of distinct primes squared are all of the form sum_i e_i*q_i where e_i is 1 or -1 and the q_i's are distinct primes. - W. Edwin Clark, Oct 19 2003