Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A246872 Lesser of Gridgeman pairs in base 16 in increasing order: pairs of primes palindromic in base 16 which differ only in their middle digits by a difference of 1. 3
2, 337, 433, 1831, 2377, 3373, 3517, 104593, 209203, 229507, 236947, 244147, 253651, 332053, 337957, 341557, 350293, 361093, 376501, 477511, 486247, 488311, 489847, 497047, 592393, 633001, 639433, 744283, 745051, 766651, 885133, 894637, 906973, 911341, 914941 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Prime Curios!, 181
EXAMPLE
433 and 449 are 2 primes which are 1B1 and 1C1 in hexadecimal notation.
PROG
(Python)
from gmpy2 import digits
from sympy import isprime
A246872 = [2]
for n in range(1, 16**4):
....s1 = digits(n, 16)
....s2 = s1[::-1]
....for m in range(15):
........p1, p2 = int(s1+digits(m, 16)+s2, 16), int(s1+digits(m+1, 16)+s2, 16)
........if isprime(p1) and isprime(p2):
............A246872.append(p1)
A246872 = sorted(A246872)
CROSSREFS
Sequence in context: A264942 A159488 A083863 * A057626 A201310 A324272
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Sep 06 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 August 18 23:05 EDT 2024. Contains 375284 sequences. (Running on oeis4.)