login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155913 Primes such that sum of digits - final digit = prime. 0
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; internal format)
OFFSET

1,1

EXAMPLE

113 is in 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: [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 31 2009]

MATHEMATICA

Select[Prime[Range[200]], PrimeQ[Total[IntegerDigits[#]] - Last[IntegerDigits[#]]] &] (* From Vladimir Joseph Stephan Orlovsky, Feb 15 2012 *)

CROSSREFS

Cf. A000040.

Sequence in context: A049483 A112681 A078500 * A153631 A082943 A061754

Adjacent sequences:  A155910 A155911 A155912 * A155914 A155915 A155916

KEYWORD

nonn,base,changed

AUTHOR

Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Jan 30 2009

EXTENSIONS

Corrected by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 31 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 17:13 EST 2012. Contains 205828 sequences.