login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100580 Palindromic primes containing digits 0 and 1 only. (Palindromic members of A020449.). 3
11, 101, 100111001, 110111011, 111010111, 1100011100011, 1100101010011, 1101010101011, 1110110110111, 1110111110111, 100110101011001, 101000010000101, 101011000110101, 101110000011101, 110011101110011 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

T. D. Noe and Chai Wah Wu, Table of n, a(n) for n = 1..2385 First 200 terms from T. D. Noe.

EXAMPLE

a(3) = 100111001 because 100111001 is the third palindromic prime composed only of 1's and 0's.

MATHEMATICA

PalQ[n_]:=FromDigits[Reverse@IntegerDigits[n]]==n; DeleteDuplicates[Flatten[Table[Select[FromDigits /@ Tuples[{0, 1}, n], PrimeQ[#]&&PalQ[#] &], {n, 15}]]] (* Jayanta Basu, May 11 2013 *)

PROG

(Python)

from sympy import isprime

A100580_list = [11]

for i in range(2, 2**16):

....s = format(i, 'b')

....x = int(s+s[-2::-1])

....if isprime(x):

........A100580_list.append(x) # Chai Wah Wu, Jan 06 2015

CROSSREFS

Cf. A020449, A002385, A000040, A002113.

Sequence in context: A001387 A247863 A180280 * A253631 A087744 A054421

Adjacent sequences:  A100577 A100578 A100579 * A100581 A100582 A100583

KEYWORD

base,nonn

AUTHOR

Chuck Seggelin (seqfan(AT)plastereddragon.com), Nov 29 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 04:06 EDT 2019. Contains 322450 sequences. (Running on oeis4.)