A356295 Numbers that are not the sum of a nonnegative cube and a prime.
1, 9, 16, 22, 26, 28, 33, 35, 36, 52, 57, 63, 65, 76, 78, 82, 85, 92, 96, 99, 112, 118, 119, 120, 122, 126, 129, 133, 141, 146, 155, 160, 169, 170, 183, 185, 188, 202, 209, 210, 216, 217, 225, 236, 244, 246, 248, 267, 273, 280, 286, 300, 302, 309, 326, 328, 330, 342
Offset: 1
Keywords
Examples
9 is a term since neither 9 - 0^3 = 9 nor 9 - 1^3 = 8 is a prime.
Programs
-
PARI
isA356295(n) = for(m=0, sqrtnint(n,3), if(isprime(n-m^3), return(0))); return(1)
Comments