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.

A065580 Smallest prime ending in exactly n 3's.

This page as a plain text file.
%I A065580 #13 Dec 08 2024 22:10:36
%S A065580 3,233,2333,23333,733333,10333333,83333333,1033333333,17333333333,
%T A065580 23333333333,2633333333333,10333333333333,53333333333333,
%U A065580 3233333333333333,1333333333333333,23333333333333333,2033333333333333333,10333333333333333333,173333333333333333333,1733333333333333333333
%N A065580 Smallest prime ending in exactly n 3's.
%H A065580 Harry J. Smith, <a href="/A065580/b065580.txt">Table of n, a(n) for n = 1..100</a>
%t A065580 Do[a = Table[3, {n} ]; k = 0; While[ b = FromDigits[ Join[ IntegerDigits[k], a]]; Mod[k, 10] == 3 || !PrimeQ[b], k++ ]; Print[b], {n, 1, 17} ]
%o A065580 (PARI) a(n)={ my(t=10^n, b=(t-1)/3, d=0); while (!isprime(b + t*d), d++; if(d%10==3, d++)); b + t*d } \\ _Harry J. Smith_, Oct 23 2009
%Y A065580 Cf. A037059, A065586, A065821, A065581, A065582.
%K A065580 nonn,base
%O A065580 1,1
%A A065580 _Robert G. Wilson v_, Nov 28 2001