|
|
A155913
|
|
Primes p such that (sum of digits of p) - (last digit of p) is prime.
|
|
1
|
|
|
23, 29, 31, 37, 53, 59, 71, 73, 79, 113, 127, 149, 163, 167, 211, 233, 239, 251, 257, 293, 307, 347, 349, 383, 389, 419, 431, 433, 439, 479, 491, 499, 503, 509, 521, 523, 563, 569, 587, 613, 617, 619, 653, 659, 673, 677, 701, 709, 743, 761, 769, 839, 853, 857
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
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
|
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|