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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063792 Subtractive primes: n = x1x2x3..xn = a prime in base 10 such that abs(x1-x2-x3-.....xn) is also a prime. 4
2, 3, 5, 7, 13, 29, 31, 41, 47, 53, 61, 79, 83, 97, 103, 113, 131, 139, 151, 157, 193, 199, 223, 227, 241, 263, 269, 281, 317, 337, 353, 359, 373, 379, 397, 401, 409, 433, 443, 461, 463, 487, 503, 521, 557, 571, 593, 599, 601, 613, 617, 631, 647, 653 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,1000

EXAMPLE

269 belong to the sequence because |2-6-9|=|-13|=13

MATHEMATICA

okQ[n_] := Module[{idn = -1# & /@ IntegerDigits[n]}, PrimeQ[Plus @@ Rest[idn] - First[idn]]]; Select[Prime[Range[120]], okQ]

PROG

(PARI) SubD(x)= { local(s); s=0; while (x>9, s+=x-10*(x\10); x\=10); return(abs(s - x)) } { n=0; p=0; for (m=1, 10^9, p=nextprime(p+1); if(isprime(SubD(p)), write("b063792.txt", n++, " ", p); if (n==1000, break)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Aug 31 2009]

CROSSREFS

Sequence in context: A075238 A158281 A115261 * A172508 A167134 A071905

Adjacent sequences:  A063789 A063790 A063791 * A063793 A063794 A063795

KEYWORD

easy,nonn,base

AUTHOR

Felice Russo (frusso(AT)micron.com), Aug 17 2001

EXTENSIONS

Corrected by Harvey P. Dale (hpd1(AT)nyu.edu), Aug 20 2001

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 13:09 EST 2012. Contains 205789 sequences.