OFFSET
1,1
COMMENTS
Integers k such that k and k-1 are both in A108662.
Terms are never prime. They cannot end in the digits 3,4,5,6,7,8,9.
If k is a term, phi(k) is divisible by 4.
The set of such numbers is infinite.
LINKS
Charles U. Lonappan, Consecutive natural numbers whose sum of squares of digits is prime, International Journal of Research in Engineering and Science (IJRES), Volume 9 Issue 1 (2021) pp. 14-16.
EXAMPLE
12 is in the sequence because the sum of squares of digits of 12 is 5 and that of 11 is 2, and both 5 and 2 are prime numbers.
MATHEMATICA
q[n_] := PrimeQ[Plus @@ (IntegerDigits[n]^2)]; Select[Range[2, 5000], q[#-1] && q[#] &] (* Amiram Eldar, May 19 2021 *)
PROG
(PARI) isok(k) = isprime(norml2(digits(k-1))) && isprime(norml2(digits(k))); \\ Michel Marcus, May 24 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Charles U. Lonappan, May 19 2021
STATUS
approved