Outputs all p count primes. def primegen (maxnfloat('inf'),countfloat ('inf')): Sequentially output primes. Essentially I would like to automate the process that is being shown in my code so it can work for any range and all prime numbers. The source can also be downloaded from here: primegen.py. My code is very long and redundant but I know it can definitely be condensed and made less repetitive with a few changes and I was hoping I could be pointed in the right direction. I see that there are many different ways to generate prime numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |