User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,563 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,528 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums

My prime Number generator

Join Date: Jul 2005
Location: France
Posts: 1,051
Reputation: bumsfeld is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 46
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Veteran Poster

Re: My prime Number generator

  #8  
Jan 29th, 2007
Originally Posted by a1eio View Post
yea, ditch the printing and append it to a list and it'll be almost instant.
Even with ditching print and returning list of primes, this algorithm is not like speed demon. It takes 6,000ms for primes up to 10,000 compared to 4ms with standard sieve algorithm.
Reply With Quote  
All times are GMT -4. The time now is 5:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC