Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125524
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125524 Republican primes. Primes such that the right half of the prime is prime and the left half is not. +0
2
13, 17, 43, 47, 67, 83, 97, 103, 107, 113, 127, 137, 157, 163, 167, 173, 193, 197, 433, 443, 457, 463, 467, 487, 607, 613, 617, 643, 647, 653, 673, 677, 683, 823, 827, 853, 857, 863, 877, 883, 887, 907, 937, 947, 953, 967, 977, 983, 997, 1013, 1019, 1031 (list; graph; listen)
OFFSET

2,1

COMMENT

If the length of n is odd then the central number is not used in the calculation. So neither the left half nor the right half will contain the central digit. If the length of n is even, then all numbers are used.

FORMULA

Half n is the floor of the length of n divided by 2.

EXAMPLE

The right half of 13 is 3 which is prime. The left half is 1 which is not prime.

The right half of 113 is 3 which is prime. The left half is 1 which is not prime.

PROGRAM

(PARI) \Political primes, republican case. rep(n) = { local(x, ln, y, lp, rp); forprime(x=2, n, y=Str(x); if(x > 9, ln=floor(length(y)/2), ln=1); lp = eval(left(y, ln)); rp = eval(right(y, ln)); if(!isprime(lp)&& isprime(rp), print1(x", ") ) ) }

CROSSREFS

Sequence in context: A043113 A043893 A068497 this_sequence A156553 A140533 A076789

Adjacent sequences: A125521 A125522 A125523 this_sequence A125525 A125526 A125527

KEYWORD

base,easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Jan 22 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research