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”).
%I #6 Dec 12 2024 22:57:03
%S 11,23,83,107,167,179,227,347,479,587,839,863,983,1283,1367,1439,1487,
%T 1619,1823,1907,2027,2039,2447,2879,2963,2999,3119,3203,3623,3863,
%U 4127,4139,4259,4283,4787,5099,5483,5879,6719,6779,6983,7247,7703,7727,7823
%N Primes such that p, 10*p-1 and (p-1)/2 are all prime.
%H Robert Israel, <a href="/A158021/b158021.txt">Table of n, a(n) for n = 1..10000</a>
%p filter:= proc(n) isprime(n) and isprime((n-1)/2) and isprime(10*n-1) end proc:
%p select(filter, [seq(i,i=3 .. 10000, 4)]); # _Robert Israel_, Dec 12 2024
%t Flatten[Table[If[PrimeQ[n] && PrimeQ[10*n - 1] && PrimeQ[( n - 1)/2], n, {}], {n, 1, 10000}]]
%Y Cf. A059455. Intersection of A000040 and A158019.
%K nonn
%O 1,1
%A _Roger L. Bagula_ and _Gary W. Adamson_, Mar 11 2009