Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A066027
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A066027 Sum of digits of n minus product of digits of n is prime. +0
2
20, 30, 50, 70, 101, 102, 104, 106, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 131, 140, 141, 151, 160, 161, 171, 181, 191, 200, 201, 203, 205, 209, 210, 211, 230, 250, 290, 300, 302, 304, 308, 311, 320, 340, 380, 401, 403, 407, 409, 410 (list; graph; listen)
OFFSET

1,1

LINKS

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

EXAMPLE

a(11)=112 because 1+1+2=4 and 2*1*1=2 and 4-2=2 and 2 is prime

PROGRAM

(PARI) ProdD(x)= { local(p=1); while (x>9 && p>0, p*=x%10; x\=10); return(p*x) } SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) } { n=0; for (m=1, 10^9, if (isprime(SumD(m) - ProdD(m)), write("b066027.txt", n++, " ", m); if (n==1000, return)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Nov 07 2009]

CROSSREFS

Cf. A066024, A038369.

Sequence in context: A120145 A104048 A078499 this_sequence A142342 A008444 A066214

Adjacent sequences: A066024 A066025 A066026 this_sequence A066028 A066029 A066030

KEYWORD

easy,nonn,base,new

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Dec 11 2001

EXTENSIONS

EXAMPLE corrected by Harry J. Smith (hjsmithh(AT)sbcglobal.net), Nov 07 2009

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 December 1 19:22 EST 2009. Contains 167811 sequences.


AT&T Labs Research