A285225 Primes with integer arithmetic mean of digits = 4 in base 10.
17, 53, 71, 1069, 1087, 1249, 1429, 1447, 1483, 1609, 1627, 1663, 1753, 1861, 1933, 1951, 2239, 2293, 2347, 2383, 2437, 2473, 2617, 2671, 2707, 2833, 2851, 3049, 3067, 3229, 3319, 3373, 3391, 3463, 3517, 3571, 3607, 3643, 3733, 3823, 3931, 4057, 4093, 4129
Offset: 1
Links
- Jaroslav Krizek, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Magma
[n: n in [1..100000] | IsPrime(n) and &+Intseq(n) mod #Intseq(n) eq 0 and &+Intseq(n) / #Intseq(n) eq 4];
-
Mathematica
Select[Prime[Range[600]],Mean[IntegerDigits[#]]==4&] (* Harvey P. Dale, Jun 11 2024 *)