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 #11 Mar 23 2024 20:19:33
%S 14591,112223,131939,170123,246511,786151,1140257,1188457,1189907,
%T 1215047,1280179,1462319,1518977,1701289,1731929,1815899,2117237,
%U 3031163,3119797,3151469,5244511,5481713,6141757,7413331,8174401,8180189,8181269,9116957,9253511,9701891
%N Primes p such that each of the decimal numbers p^k for k=1..6 has exactly two 1s.
%C Subsequence of A175964.
%e 14591^k with k=1..6: 14591, 212897281, 3106384227071, 45325252257192961, 661340755684702493951, 9649622966195494089239041
%t Select[Prime[Range[380000]],Union[DigitCount[#^Range[6],10,1]]=={2}&] (* _Harvey P. Dale_, Aug 12 2020 *)
%o (Python)
%o from somewhere import primegen
%o for p in primegen():
%o if all(str(p**k).count('1') == 2 for k in range(1, 7)):
%o print(p) # _Lucas A. Brown_, Mar 23 2024
%Y Cf. A175964.
%K base,nonn
%O 1,1
%A _Zak Seidov_, Nov 01 2010
%E a(23)-a(30) from _Lucas A. Brown_, Mar 23 2024
%E Definition clarified by _N. J. A. Sloane_, Mar 23 2024