OFFSET
1,1
EXAMPLE
For n=9, prime(9)=23. Last digit of 23 is 3, 23-2*3 = 17. So a(9) = 17.
PROG
(PARI) {
forprime(n=1, 300,
p=floor(n/10)*10;
d=n-p;
pd=p-d;
print1(pd", ")
)
}
CROSSREFS
KEYWORD
sign,base,less
AUTHOR
Dimitris Valianatos, Jul 02 2016
STATUS
approved