Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A063792
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A063792 Subtractive primes: n = x1x2x3..xn = a prime in base 10 such that abs(x1-x2-x3-.....xn) is also a prime. +0
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; listen)
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]

PROGRAM

(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: A114741 A075238 A115261 this_sequence A167134 A071905 A067573

Adjacent sequences: A063789 A063790 A063791 this_sequence A063793 A063794 A063795

KEYWORD

easy,nonn,base

AUTHOR

Felice Russo (felice.russo(AT)katamail.com), Aug 17 2001

EXTENSIONS

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research