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.

A032737 Composite numbers k such that all the decimal concatenations ik and ikj (i, j = 1...9) are also composite.

This page as a plain text file.
%I A032737 #21 Jan 01 2025 23:32:39
%S A032737 5620,7358,13308,13332,13650,14612,26302,27971,28472,28838,29542,
%T A032737 29650,31328,33027,33170,35914,35970,36186,39608,40078,41165,41528,
%U A032737 42422,47172,47382,48046,48052,48454,50774,52735,55553,60222,60806
%N A032737 Composite numbers k such that all the decimal concatenations ik and ikj (i, j = 1...9) are also composite.
%C A032737 The old definition was that a(n) must be composite and "cannot be prefixed or followed by any digit to form a prime ('empty' suffixes are allowed)".
%H A032737 Harvey P. Dale, <a href="/A032737/b032737.txt">Table of n, a(n) for n = 1..1000</a>
%e A032737 55553 prefixed with a digit from (1,2,3,4,5,6,7,8,9) and followed by a digit from ('',1,3,7,9) never yields a prime: '3'55553'_' = 11 x 32323; '2'5620'9' = 3 x 41 x 2083.
%p A032737 # Naive program to test for membership -  _N. J. A. Sloane_, Jan 01 2025:
%p A032737 isA032737 := proc(x) local S,y,L1,L2,i,j;
%p A032737 L1:=[seq(i,i=1..9)]; L2:=[1,3,7,9];
%p A032737 S:=[x];
%p A032737 for i in L1 do y:=parse(cat(i,x)); S:=[op(S),y]; od:
%p A032737 for i in L1 do for j in L2 do y:=parse(cat(i,x,j)); S:=[op(S),y]; od: od:
%p A032737 for i in S do if isprime(i) then return('false', i,"is prime"); break; fi; od:
%p A032737 'true';
%p A032737 end;
%t A032737 pfdQ[n_]:=CompositeQ[n]&&NoneTrue[Flatten[Table[10(d1*10^IntegerLength[n]+n)+d2,{d1,Range[9]},{d2,{1,3,7,9}}]],PrimeQ] && NoneTrue[ Flatten[Table[d1*10^IntegerLength[n]+n,{d1,Range[9]}]],PrimeQ]; Select[Range[61000],pfdQ] (* _Harvey P. Dale_, Jan 01 2025 *)
%Y A032737 Cf. A032682-A032685 and A032702-A032733.
%K A032737 nonn,base
%O A032737 1,1
%A A032737 _Patrick De Geest_, May 15 1998
%E A032737 Offset changed by _Andrew Howroyd_, Aug 13 2024
%E A032737 Definition revised by _N. J. A. Sloane_, Jan 01 2025
%E A032737 Terms corrected and extended by _Harvey P. Dale_, Jan 01 2025