cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A125663 Numbers such that the left half of the digits form a prime and the right half do not.

This page as a plain text file.
%I A125663 #3 Oct 01 2013 21:35:20
%S A125663 20,21,24,26,28,29,30,31,34,36,38,39,50,51,54,56,58,59,70,71,74,76,78,
%T A125663 79,200,201,204,206,208,209,210,211,214,216,218,219,220,221,224,226,
%U A125663 228,229,230,231,234,236,238,239,240,241,244,246,248,249,250,251,254,256
%N A125663 Numbers such that the left half of the digits form a prime and the right half do not.
%C A125663 If n is odd > 1 then the middle digit is ignored.
%F A125663 The left half of an n-digit number is the first floor(n/2) digits. The right half of an n-digit number is the last floor(n/2) digits.
%e A125663 20 is the first number with this property.
%o A125663 (PARI) leftprime(n) = { local(x,ln,y,lp,rp); for(x=1,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",") ) ) }
%Y A125663 Cf. A125523.
%K A125663 base,easy,nonn
%O A125663 1,1
%A A125663 _Cino Hilliard_, Jan 29 2007