cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A004684 Primes written in base 11. (Next term contains a nondecimal character.)

Original entry on oeis.org

2, 3, 5, 7, 10, 12, 16, 18, 21, 27, 29, 34, 38
Offset: 1

Views

Author

Keywords

Programs

  • Mathematica
    FromDigits /@ TakeWhile[Array[IntegerDigits[Prime@ #, 11] &, 15], NoneTrue[#, # > 9 &] &] (* Michael De Vlieger, Nov 25 2018 *)
  • PARI
    a(n)=subst(Pol(digits(prime(n),11)),'x,10) \\ Charles R Greathouse IV, Nov 06 2013
    
  • PARI
    a(n) = my(d=digits(prime(n), 11)); my(s="", x); for(i=1, #d, if(d[i]<10, x = d[i], x = "A"); s = concat(s, x)); eval(s);
    for(n=1, 30, print1(a(n), ", ")) \\ Michel Marcus, Nov 25 2018