A264577 Prime numbers such that sum of digits in base 4 equals product of digits in base 4.
2, 3, 617, 677, 5593513, 5597797, 5608873, 5609113, 5609833, 5659237, 5662297, 5662357, 5678437, 5854633, 5855833, 5871013, 5871961, 5871973, 5872213, 5875033, 5876053, 5920357, 5921173, 5924437, 5937493, 6646357, 6658453, 6661477, 6706537, 6706597, 6707557
Offset: 1
Examples
5593513_10 = 111111212221_4 is prime and the sum of digits of 111111212221 is equal to the product of digits.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A066306.
Programs
-
Mathematica
Select[Prime@ Range[10^6], Total@ # == Times @@ # &@ IntegerDigits[#, 4] &] (* Michael De Vlieger, Nov 18 2015 *)