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.

A113481 Numbers n such that 59^n + 2 is prime.

Original entry on oeis.org

0, 1, 27, 45, 75
Offset: 1

Views

Author

Cino Hilliard, Jan 09 2006

Keywords

Comments

a(6) > 2*10^5. - Robert Price, Mar 21 2015

Programs

  • Magma
    [n: n in [0..100] | IsPrime( 59^n + 2)]; // Vincenzo Librandi, Mar 22 2015
  • Mathematica
    For[n=0, n<50, n++, If[PrimeQ[59^n+2], Print[n]]] (* Stefan Steinerberger, Feb 10 2006 *)
    Select[Range[0, 1000], PrimeQ[59^# + 2] &] (* Vincenzo Librandi, Mar 22 2015 *)
  • PARI
    forstep(n=1,1000,2,y=59^n+2;if(ispseudoprime(y),print1(n",")))