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.

A064271 Numbers k such that sigma(k) - 2k is prime.

Original entry on oeis.org

18, 20, 36, 100, 104, 196, 324, 392, 464, 576, 650, 784, 800, 900, 968, 1352, 1936, 1952, 2450, 2500, 3136, 4356, 4624, 5184, 6050, 6400, 9216, 10000, 10404, 10816, 12800, 13456, 14400, 15376, 15488, 16928, 18496, 20000, 20736, 23104, 26912
Offset: 1

Views

Author

Jason Earls, Sep 23 2001

Keywords

Examples

			n=100: sigma(100) - 2*100 = 17, a prime.
		

Crossrefs

Programs

  • PARI
    j=[]; for(n=1,50000,x=sigma(n)-2*n; if(x>0 && isprime(x),j=concat(j,n))); j
    
  • PARI
    { n=0; for (m=1, 10^9, if (isprime(sigma(m) - 2*m), write("b064271.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Sep 11 2009