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.

A056130 Palindromic primes in bases 2 and 4.

Original entry on oeis.org

3, 5, 17, 257, 5189, 65537, 83269, 86293, 1053953, 1066049, 1134929, 1311749, 1380629, 16864513, 17060929, 17909009, 18153809, 18171217, 21251141, 22103317, 289423441, 290455889, 290735441, 336662789, 336925957, 340873541
Offset: 1

Views

Author

Robert G. Wilson v, Jul 29 2000

Keywords

Comments

Intersection of A016041 and A029972.
Subsequence of primes of A097856. - Michel Marcus, Nov 07 2015

Examples

			5 is 101 (base 2) and 11 (base 4), that are both palindromic.
		

Crossrefs

Cf. A016041 and A029972.

Programs

  • Mathematica
    Do[If[PrimeQ[n], t = RealDigits[n, 4][[1]]; If[FromDigits[t] == FromDigits[Reverse[t]], s = RealDigits[n, 2][[1]]; If[FromDigits[s] == FromDigits[Reverse[s]], Print[n]]]], {n, 1, 10^8, 2}]