A227319 Powers but not squares which are sum of consecutive primes less than 10^7 ordered according to the proximity of the first prime of the sum to the first prime: 2.
8, 243, 128, 216, 12167, 1906624, 6859, 226981, 3125, 12167, 1252726552, 325660672, 1331, 19902511000, 32768, 537824, 69934528000, 704969, 39304, 42875, 50653, 751089429, 79507, 314432, 21952, 22665187, 47437928, 1605723211, 10648, 287496, 5177717, 7414875
Offset: 1
Examples
8 = 2^3 = 3 + 5; 243 = 3^5 = 41 + 43 + 47 + 53 + 59; 128 = 2^7 = 61 + 67; 216 = 6^3 = 107 + 109; 12167 = 23^3 = S(47,32) = Sum of 47 primes beginning with p(32); ... ; 11^3 = 1331 = 439 + 443 + 449; 5^5 = 3125 = S(11,55); 11^5 = 161051 = S(47,458); 2^13 = 8192 = 4093 + 4099; 3^13 = 1594323 = S(233,764); 2^17 = 131072 = S(40,443) = S(8,1896); 7^7 = 823543 = S(7^2,1917); 2^25 = S(1268,2269); 2001^3 = S(35209,2368).
Programs
-
PARI
n=10^7;v=vector(n);i=0;for(a=2,n,if(isprime(a),i++;v[i]=a));for(b=1,315,k=0;for(j=b,i,k=k+v[j];if(ispower(k,,&n)&!issquare(k),print1(k,", "))))
Comments