login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Nonprimes where the first digit equals the final digit and also equals the number of digits.
0

%I #10 Dec 30 2012 11:51:43

%S 1,22,303,323,333,343,363,393,4004,4014,4024,4034,4044,4054,4064,4074,

%T 4084,4094,4104,4114,4124,4134,4144,4154,4164,4174,4184,4194,4204,

%U 4214,4224,4234,4244,4254,4264,4274,4284,4294,4304,4314,4324,4334,4344,4354

%N Nonprimes where the first digit equals the final digit and also equals the number of digits.

%C Subsequence of A018252.

%C Sequence is finite; last term is a(9885995) = 999999999. - _Charles R Greathouse IV_, Dec 30 2012

%o (PARI) is(n)=my(d=digits(n)); !isprime(n) && d[1]==n%10 && d[1] == #d \\ _Charles R Greathouse IV_, Dec 29 2012

%K nonn,base,fini

%O 1,2

%A _Juri-Stepan Gerasimov_, Jan 27 2009

%E The definition was unclear, but I have made a guess as to what was intended. - _N. J. A. Sloane_, Feb 02 2009

%E Added requirement on digit count to the definition _R. J. Mathar_, Feb 13 2009