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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A246135 Primes that are palindromic right angle numbers in base 9 2

%I #6 Aug 15 2014 22:23:58

%S 173,191,373,719,50767,1270271,30890747159

%N Primes that are palindromic right angle numbers in base 9

%e 50767 is in the list since it is prime and is equal to 76567 in base 9.

%o (Python)

%o from sympy import isprime

%o A246135 = []

%o for n in range(1,9):

%o ....for m in range(n-1,-1,-1):

%o ........l = ''.join([str(d) for d in range(n,m-1,-1)])

%o ........p = int(l+l[-2::-1],9)

%o ........if isprime(p):

%o ............A246135.append(p)

%o ....for m in range(n+1,9):

%o ........l = ''.join([str(d) for d in range(n,m+1)])

%o ........p = int(l+l[-2::-1],9)

%o ........if isprime(p):

%o ............A246135.append(p)

%o A246135 = sorted(A246135)

%Y Cf. A246136, A244369.

%K nonn,base,full,fini

%O 1,1

%A _Chai Wah Wu_, Aug 15 2014

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.

Last modified August 15 10:04 EDT 2024. Contains 375173 sequences. (Running on oeis4.)