On 15/08/18 21:25, tomusa...@gmail.com wrote:
Yes, I will try it! Thank you kindly.
Please provide some context when you reply. This is the fourth message
that you've sent but there's no immediate clue to whom you are
answering. TIA :-)
--
My fellow Pythonistas, ask not what our language
Yes, I will try it! Thank you kindly.
--
https://mail.python.org/mailman/listinfo/python-list
I'm sorry I did not correctly state the subset I was after:
"Composite numbers that are one less than twice a composite."
The output would begin:
DATA
15, 27, 35, 39, 49, 50, 51, 55, 63, 65, 69, 75, 77, 87, 91, 95, 99, 111, 115,
119, 123, 125, 129, 135, 143, 147, 153, 155, 159, 161, 169, 17
Thanks, I think that is an interesting tactic. From there what might the
language look like to filter out the composites that are not one less than
twice another composite number?
--
https://mail.python.org/mailman/listinfo/python-list
DATA
15, 27, 35, 39, 49, 50, 51, 55, 63, 65, 69, 75, 77, 87, 91, 95, 99, 111, 115,
119, 123, 125, 129, 135, 143, 147, 153, 155, 159, 161, 169, 171, 175, 183, 185,
187, 189, 195, 203, 207, 209, 215, 219, 221
--
https://mail.python.org/mailman/listinfo/python-list
tomusa...@gmail.com wrote:
> Thank you very much! Do you also know how I might slightly alter to
> composite numbers that are one less than twice a composite number?
>
> 15 would be the first number
> Since 8 is composite then
>
> 2*8=16
> 16 - 1=15 Is composite
Like
>>> def is_composite(n):
.
Thank you very much! Do you also know how I might slightly alter to composite
numbers that are one less than twice a composite number?
15 would be the first number
Since 8 is composite then
2*8=16
16 - 1=15 Is composite
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Wed, 15 Aug 2018 05:34:06 -0700, tomusatov 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,
On Wed, 15 Aug 2018 05:34:06 -0700, tomusatov 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
On Wed, Aug 15, 2018 at 8:36 AM 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
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
--
htt
11 matches
Mail list logo