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.

A173085 Numbers k such that k, k^2 - 5, and k^2 + 5 are semiprime.

This page as a plain text file.
%I A173085 #13 Sep 06 2025 15:48:53
%S A173085 26,62,86,118,134,566,706,982,1198,1322,1346,1678,1706,1822,2386,2402,
%T A173085 2498,2654,2966,3086,3142,3158,3326,3662,4222,4874,5158,5354,5774,
%U A173085 6602,6638,6746,6998,7142,7586,7646,7834,8006,8482,8486,8846,9134,9406,10558
%N A173085 Numbers k such that k, k^2 - 5, and k^2 + 5 are semiprime.
%C A173085 26^2-5=671 -> 11*61, 26^2+5=681 -> 3*227,..
%H A173085 Charles R Greathouse IV, <a href="/A173085/b173085.txt">Table of n, a(n) for n = 1..10000</a>
%F A173085 a(n) >> n log n. - _Charles R Greathouse IV_, Sep 14 2015
%t A173085 f[n_]:=Last/@FactorInteger[n]=={1,1}||Last/@FactorInteger[n]=={2}; lst={};Do[If[f[n], a=n^2-5;b=n^2+5;If[f[a]&&f[b],AppendTo[lst,n]]],{n,9!}];lst
%t A173085 Select[Range[12000],PrimeOmega[#]==PrimeOmega[#^2-5] == PrimeOmega[ #^2+5] == 2&] (* _Harvey P. Dale_, Aug 29 2021 *)
%o A173085 (PARI) issemi(n)=bigomega(n)==2
%o A173085 is(n)=if(n%2, isprime((n^2-5)\2) && isprime((n^2+5)\2) && issemi(n), isprime(n/2) && issemi(n^2-5) && issemi(n^2+5)) \\ _Charles R Greathouse IV_, Sep 14 2015
%Y A173085 Cf. A001358, A173082, A173083, A173084.
%K A173085 nonn,changed
%O A173085 1,1
%A A173085 _Vladimir Joseph Stephan Orlovsky_, Feb 09 2010
%E A173085 Edited by _Charles R Greathouse IV_, Apr 06 2010