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.
%I A242752 #5 May 21 2014 23:46:39 %S A242752 2,3,5,13,17,29,31,41,47,61,89,101,107,137,167,179,193,197,223,229, %T A242752 251,257,263,271,293,313,337,347,353,379,401,431,439,487,499,587,593, %U A242752 599,601,643,647,653,659,677,701,727,733,739,751,797,821,823,829,857,919,929,941,967,971,983 %N A242752 Primes p such that pi(p) is a primitive root modulo p, where pi(p) is the number of primes not exceeding p. %C A242752 According to the conjecture in A232748, this sequence should contain infinitely many primes. %H A242752 Zhi-Wei Sun, <a href="/A242752/b242752.txt">Table of n, a(n) for n = 1..10000</a> %e A242752 a(3) = 5 since 5 is prime with pi(5) = 3 a primitive root modulo 5. %t A242752 dv[n_]:=Divisors[n] %t A242752 n=0;Do[Do[If[Mod[k^(Part[dv[Prime[k]-1],j]),Prime[k]]==1,Goto[aa]],{j,1,Length[dv[Prime[k]-1]]-1}];n=n+1;Print[n," ",Prime[k]];Label[aa];Continue,{k,1,166}] %Y A242752 Cf. A000040, A000720, A242748, A242750. %K A242752 nonn %O A242752 1,1 %A A242752 _Zhi-Wei Sun_, May 21 2014