login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A052430 Numbers n such that sum of digits and product of digits are both prime. 1
2, 3, 5, 7, 12, 21, 113, 115, 131, 151, 311, 511, 1112, 1121, 1211, 2111, 11113, 11117, 11131, 11171, 11311, 11711, 13111, 17111, 31111, 71111, 111112, 111121, 111211, 112111, 121111, 211111, 1111115, 1111117, 1111151, 1111171, 1111511, 1111711 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
One digit must be 2, 3, 5, or 7 and every other digit must be 1. If k is in the sequence, then so is every permutation of the digits of k. - Sean A. Irvine, Nov 08 2021
LINKS
EXAMPLE
a(7)=115 because 1+1+5=7 which is prime and 1*1*5=5 which is prime
MATHEMATICA
okQ[n_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[Total[idn]]&&PrimeQ[Times@@idn]]
Select[Range[1500000], okQ] (* Harvey P. Dale, Dec 15 2010 *)
CROSSREFS
Sequence in context: A062713 A334630 A086108 * A344454 A235153 A177968
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Mar 14 2000
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)