A119748 Numbers that are not the sum of a prime and a (nontrivial, positive) power.
1, 2, 5, 1549, 1771561
Offset: 1
Links
- G. H. Hardy, J. E. Littlewood, Some of the problems of partitio numerorum III: On the expression of a large number as a sum of primes, Acta Mathematica 44 (1923), pp. 1-70.
- John Robertson, Integers of the form x^2+kp (1999). [Broken link]
- Wang Tianze, On the exceptional set for the equation n = p + k^2, Acta Mathematica Sinica, Vol. 11, No. 2 (1995), pp. 156-167.
Crossrefs
Cf. A119747.
Programs
-
PARI
is(n)=for(e=2, log(n)\log(2), for(b=2, sqrtnint(n, e), if(isprime(n-b^e)&&!ispower(b), return(0)))); 1 \\ Charles R Greathouse IV, May 28 2015
Extensions
1771561 from Max Alekseyev, Jul 31 2006
Comments