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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065439 Numbers n such that s[n], p[n] and s[n]+p[n] are all prime numbers, where s[n] is the sum of digits of n and p[n] is the product of digits of n. 0
12, 21, 1112, 1121, 1211, 2111, 1111111112, 1111111121, 1111111211, 1111112111, 1111121111, 1111211111, 1112111111, 1121111111, 1211111111, 2111111111, 1111111111111112, 1111111111111121, 1111111111111211, 1111111111112111 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

p[n] will always be 2 and s[n] and s[n]+p[n] will always be twin primes.

LINKS

A. G. Gevisier, A curiosity about the number 12

MATHEMATICA

Do[s = Apply[ Plus, IntegerDigits[n]]; p = Apply[ Times, IntegerDigits[n]]; If[ PrimeQ[s] && PrimeQ[p] && PrimeQ[s + p], Print[n]], {n, 1, 10^7} ]

CROSSREFS

Sequence in context: A001292 A162391 A114015 * A031186 A078538 A098955

Adjacent sequences:  A065436 A065437 A065438 * A065440 A065441 A065442

KEYWORD

base,nonn

AUTHOR

Santi Spadaro (spados(AT)katamail.com), Nov 17 2001

EXTENSIONS

Comment and more terms from Larry Reeves (larryr(AT)acm.org), Nov 27 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 16 10:07 EST 2012. Contains 205904 sequences.