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.

A124179 Prime(R(p)) where Prime(i) is the i-th prime and R(p) is the value of the reverse of the digits of prime p.

Original entry on oeis.org

3, 5, 11, 17, 31, 127, 353, 467, 131, 479, 41, 367, 43, 139, 373, 149, 499, 53, 383, 59, 157, 509, 163, 521, 401, 547, 1993, 5281, 7001, 2063, 5449, 739, 5527, 7307, 7417, 877, 5701, 2437, 5801, 2539, 7649, 1087, 1153, 2689, 6067, 7841, 613, 2137, 5471
Offset: 2

Views

Author

Cino Hilliard, Dec 04 2006

Keywords

Examples

			Rp(17) = 71. Prime(71)= 353.
		

Programs

  • PARI
    g(n) = for(x=1,n,y=revi(prime(x));print1(prime(y)",")) revi(str) = \ Get the integer of the reverse of the input string { local(tmp,s,j); tmp = Vec(Str(str)); s=""; forstep(j=length(tmp),1,-1, s=concat(s,tmp[j])); return(eval(s)) }