Program to output a subset of the composite numbers

Joel Goldstick joel.goldstick at gmail.com
Wed Aug 15 08:40:43 EDT 2018


On Wed, Aug 15, 2018 at 8:36 AM <tomusatov at gmail.com> wrote:
>
> I am not terribly familiar with Python, but am currently authoring an integer sequence for www.oeis.org and was wondering if anyone in the community could help me with authoring a Python program that outputs, "Composite numbers that are one less than a composite number."
>
> Thanks!
> Musatov
> --
> https://mail.python.org/mailman/listinfo/python-list

Since composite numbers are all the positive integers that are not
prime and not one, I believe you can find code to produce a sequence
of prime numbers, and you can subtract that sequence from the sequence
of positive integers

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays



More information about the Python-list mailing list