Sieve of Eratosthenes

Sieve of Eratosthenes

Sieve of Eratosthenes Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 376
  • Released: Feb 16, 2007

Sieve of Eratosthenes Description

This script computes an infinite sequence of primes using simple generators. A Python dictionary is used to mark multiples of the generated primes, according to the Sieve of Eratosthenes.

Sieve of Eratosthenes Bookmark

Hyperlink code:
Hyperlink for Forum code:

Sieve of Eratosthenes Script Download Notice

Top 4 Download periodically updates information of Sieve of Eratosthenes script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Sieve of Eratosthenes torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

A generator for any number of for loop

Python has a number of nice methods to handle 'for' loops. However, the situation often arises where you have a large number of nested loops. This script allows you to reduces the number of loops to one. ...
Python

Generator for integer partitions

Generator for integer partitions script uses an iterative procedure to deal with integer partitions. ...
Python

Format number function

... possible to use the locale module to format numbers. But there are at least three languages for which the locale.localeconv()['thousands_sep'] is empty: brazilian portuguese - 'pt_br', portuguese - 'pt' and spanish - 'es'. The first function, format_positive_integer() will return the passed integer number as a string with the thousands group ...
Python

Merging two sorted iterators

... two iterators into a single iterator. It uses generators, and guarantees constant memory use. ...
Python

base64 encoding prototype

... converts it into binary, takes the first six numbers in that, converts that into a decimal number, and from there makes it a letter("m") according to the base64 code. ...
Python