login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A246135 Primes that are palindromic right angle numbers in base 9 2
173, 191, 373, 719, 50767, 1270271, 30890747159 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
50767 is in the list since it is prime and is equal to 76567 in base 9.
PROG
(Python)
from sympy import isprime
A246135 = []
for n in range(1, 9):
....for m in range(n-1, -1, -1):
........l = ''.join([str(d) for d in range(n, m-1, -1)])
........p = int(l+l[-2::-1], 9)
........if isprime(p):
............A246135.append(p)
....for m in range(n+1, 9):
........l = ''.join([str(d) for d in range(n, m+1)])
........p = int(l+l[-2::-1], 9)
........if isprime(p):
............A246135.append(p)
A246135 = sorted(A246135)
CROSSREFS
Sequence in context: A097845 A364937 A261530 * A140002 A178652 A119567
KEYWORD
nonn,base,full,fini
AUTHOR
Chai Wah Wu, Aug 15 2014
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 22 21:11 EDT 2024. Contains 374544 sequences. (Running on oeis4.)