OFFSET
1,1
COMMENTS
Zero corresponds to the prime 11. It is easy to show that there is no other zero: if the difference of odd-even digits of a number is zero, the number is a multiple of 11, i.e., it is not a prime.
Positions are counted from the least to the most significant digit, so for prime 17 the odd digit is 7 and the even digit is 1. - Harvey P. Dale, Dec 15 2022
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(37) = 3 because 37th prime = 157, (7+1) - 5 = 3.
MAPLE
MATHEMATICA
Table[Total[Take[Reverse[IntegerDigits[p]], {1, -1, 2}]]-Total[Take[Reverse[IntegerDigits[p]], {2, -1, 2}]], {p, Prime[Range[120]]}] (* Harvey P. Dale, Dec 15 2022 *)
CROSSREFS
KEYWORD
base,sign
AUTHOR
Giorgio Balzarotti and Paolo P. Lava, Jan 20 2006
STATUS
approved