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.

A100819 Composite numbers whose prime factors are twin primes.

This page as a plain text file.
%I A100819 #22 Feb 18 2015 10:25:00
%S A100819 9,15,21,25,27,33,35,39,45,49,51,55,57,63,65,75,77,81,85,87,91,93,95,
%T A100819 99,105,117,119,121,123,125,129,133,135,143,145,147,153,155,165,169,
%U A100819 171,175,177,183,187,189,195,203,205,209,213,215,217,219,221
%N A100819 Composite numbers whose prime factors are twin primes.
%e A100819 221 = 13 * 17 (13 is the twin prime of 11 and 17 is the twin prime to 19).
%t A100819 nn = 100; p = Prime[Range[nn]]; t = {}; Do[If[p[[n + 1]] - p[[n]] == 2 || p[[n]] - p[[n - 1]] == 2, AppendTo[t, p[[n]]]], {n, nn - 1}]; Select[Range[2, t[[-1]]], ! PrimeQ[#] && Complement[Transpose[FactorInteger[#]][[1]], t] == {} &] (* _T. D. Noe_, May 21 2013 *)
%Y A100819 Cf. A077800 (twin primes).
%K A100819 easy,nonn
%O A100819 1,1
%A A100819 _Walter Carlini_, Jan 06 2005; corrected Jan 22 2005
%E A100819 New name, typo in example fixed by _Zak Seidov_, May 20 2013