A004679 Primes written in base 5.
2, 3, 10, 12, 21, 23, 32, 34, 43, 104, 111, 122, 131, 133, 142, 203, 214, 221, 232, 241, 243, 304, 313, 324, 342, 401, 403, 412, 414, 423, 1002, 1011, 1022, 1024, 1044, 1101, 1112, 1123, 1132, 1143, 1204, 1211, 1231, 1233, 1242, 1244, 1321, 1343, 1402, 1404, 1413, 1424, 1431
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[Seqint(Intseq(NthPrime(n), 5)): n in [1..60]]; // G. C. Greubel, Oct 12 2018
-
Mathematica
FromDigits/@IntegerDigits[Prime[Range[50]],5] (* Harvey P. Dale, Dec 09 2010 *)
-
PARI
a(n)=subst(Pol(digits(prime(n),5)),'x,10) \\ Charles R Greathouse IV, Nov 06 2013