A383357 Integers m such that R(Sum_{k=1..m} (10^k+k)) is prime, where R is the digit reversal function A004086.
1, 2, 4, 20, 34, 35, 77, 158, 181, 401, 973, 3517, 6818
Offset: 1
Examples
1 is a term because 10^1+1 = 11 and its digit reversal is 11, which is prime. 2 is a term because 10^1+1 + 10^2+2 = 113 and its digit reversal is 311, a prime. 3 is not a term because 10^1+1 + 10^2+2 + 10^3+3 = 1116 and R(1116) = 6111, not prime.
Programs
-
PARI
for(n=1,400,my(s=fromdigits(Vecrev(digits(sum(k=1,n,10^k+k)))));if(ispseudoprime(s),print1(n", ")));
Comments