A264576 Prime numbers such that sum of digits in base 8 equals product of digits in base 8.
2, 3, 5, 7, 83, 139, 673, 1289, 2129, 5197, 5449, 6737, 6793, 8849, 12889, 13001, 21577, 38281, 58441, 70537, 90697, 300809, 311897, 398921, 2400851, 2400907, 2429579, 2430601, 2462353, 2658899, 2691659, 2724937, 2925137, 2925193, 2925641, 2957897, 4494929
Offset: 1
Examples
300809_10 = 1113411_8 is prime and the sum of digits of 1113411 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[#, 8] &] (* Michael De Vlieger, Nov 18 2015 *)