A099068 Numbers n such that n=P(d_1)*P(d_2)*...*P(d_k)+(P(d_1)+P(d_2)+...+P(d_k)) where d_1 d_2 ... d_k is the decimal expansion of n and P(i) is the i-th prime.
23, 119, 428, 918, 1637682, 652827658771
Offset: 1
Examples
1637682 is in the sequence because 1637682= P(1)*P(6)*P(3)*P(7)*P(6)*P(8)*P(2)+(P(1)+P(6)+P(3)+P(7)+P(6)+P(8)+P(2)).
Links
- C. Rivera, Puzzle 279The Prime Puzzles & Problems connection.
Programs
-
Mathematica
Do[h=IntegerDigits[n];l=Length[h];If[ !MemberQ[h, 0]&&n==Product[Prime[h[[k]]], {k, l}]+Sum[Prime[h[[k]]], {k, l}], Print[n]], {n, 15000000}]
Extensions
Definition corrected by D. S. McNeil, Mar 14 2009
a(6) from Donovan Johnson, Mar 26 2010
Comments