Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A066024
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A066024 Product of digits of n less the sum of digits of n is prime. +0
2
24, 25, 27, 29, 33, 34, 35, 37, 38, 42, 43, 45, 47, 49, 52, 53, 54, 56, 57, 59, 65, 67, 72, 73, 74, 75, 76, 78, 79, 83, 87, 92, 94, 95, 97, 125, 126, 128, 133, 144, 146, 148, 152, 162, 164, 166, 182, 184, 188, 215, 216, 218, 222, 223, 225, 227, 229, 232, 245, 247 (list; graph; listen)
OFFSET

1,1

LINKS

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

EXAMPLE

a(1)=24 because 2+4=6 and 2*4=8 and 8-6=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(ProdD(m) - SumD(m)), write("b066024.txt", n++, " ", m); if (n==1000, return)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Nov 07 2009]

CROSSREFS

Cf. A038369, A066027.

Sequence in context: A165845 A004513 A004465 this_sequence A123608 A141587 A027729

Adjacent sequences: A066021 A066022 A066023 this_sequence A066025 A066026 A066027

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.003 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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research