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”).

A064271
Numbers k such that sigma(k) - 2k is prime.
2
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,1
LINKS
EXAMPLE
n=100: sigma(100) - 2*100 = 17, a prime.
PROG
(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
CROSSREFS
Sequence in context: A350038 A335897 A036170 * A113541 A181453 A113542
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Sep 23 2001
STATUS
approved