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.

A283248 Numbers that cannot be represented as a sum of one prime and two primes squared.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 14, 17, 22, 28, 33, 38, 43, 62, 68, 78, 83, 98, 104, 134, 146, 158, 174, 179, 182, 188, 200, 218, 230, 248, 260, 266, 272, 278, 302, 308, 314, 328, 332, 338, 356, 374, 398, 404, 416, 428, 440, 458, 464, 482, 488, 494, 506, 518, 524, 530
Offset: 1

Views

Author

Michel Marcus, Mar 05 2017

Keywords

Examples

			10 is the first missing number since it is 2 + 2^2 + 2^2.
		

Crossrefs

Cf. A214879.

Programs

  • PARI
    isok2(n)=forprime(q=2,sqrtint(n),if(isprimepower(n-q^2)==2, return(0))); 1;
    isok(n) = forprime(p=2, n-1, if (!isok2(n-p), return (0));); 1;