OFFSET
1,1
COMMENTS
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
Number 121 is in sequence because 1*2*1 = 2, and 121 = 11*11 is composite.
MATHEMATICA
Select[Sort[Flatten[Table[FromDigits/@Permutations[PadRight[{2}, n, 1]], {n, 2, 9}]]], CompositeQ] (* Harvey P. Dale, Oct 06 2024 *)
PROG
(Python)
from sympy import isprime
def agen(maxdigits):
for digs in range(1, maxdigits+1):
for i in range(digs):
t = int("1"*(digs-1-i) + "2" + "1"*i)
if not isprime(t): yield t
print(list(agen(9))) # Michael S. Branicky, Dec 21 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Nov 25 2011
STATUS
approved