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.

A090721 Primes whose representation in base 1024 can be interpreted as a decimal prime.

Original entry on oeis.org

2, 3, 5, 7, 1031, 1033, 3079, 4099, 6151, 7177, 1048583, 1049603, 1050631, 1051649, 1053697, 1054723, 2099203, 2100227, 2101249, 2102273, 2102279, 2105347, 3148801, 3148807, 3149831, 3150857, 3151879, 3153923, 3153929, 4198409, 4200451, 5242883
Offset: 1

Views

Author

Cino Hilliard, Jan 18 2004

Keywords

Crossrefs

Programs

  • PARI
    is(n)=if(!isprime(n),return(0));my(s,t,b=1);while(n,t=n%1024;if(t>9,return(0));s+=t*b;b*=10;n>>=10);s \\ Charles R Greathouse IV, Feb 07 2013
    
  • PARI
    v=List();forprime(p=2,1e3,d=digits(p);t=sum(i=1,#d,d[i]<<(10*(#d-i)));if(ispseudoprime(t),listput(v,t)));Vec(v) \\ Charles R Greathouse IV, Feb 07 2013

Extensions

Better definition and offset by Omar E. Pol, Dec 24 2008
a(16) and a(26) corrected by Charles R Greathouse IV, Feb 07 2013