OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
Presumably a(n) ~ n log n log log n. - Charles R Greathouse IV, Jan 02 2013
EXAMPLE
113 is in the sequence because it is prime and its sum of digits (1+1+3 = 5) - final digit(3) is prime (5-3 = 2).
MAPLE
A007953 := proc(n) add(d, d=convert(n, base, 10)) ; end: A010879 := proc(n) n mod 10 ; end: for i from 1 to 300 do p := ithprime(i) ; if isprime(A007953(p)-A010879(p)) then printf("%d, ", p) ; fi; od: # R. J. Mathar, Jan 31 2009
MATHEMATICA
Select[Prime[Range[200]], PrimeQ[Total[IntegerDigits[#]] - Last[IntegerDigits[#]]] &] (* Vladimir Joseph Stephan Orlovsky, Feb 15 2012 *)
PROG
(PARI) is(n)=isprime(sumdigits(n) - n%10) && isprime(n) \\ Charles R Greathouse IV, Jan 02 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jan 30 2009
EXTENSIONS
Corrected by R. J. Mathar, Jan 31 2009
STATUS
approved