• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sieve of Eratosthenes  RSS feed

 
Brandon Peeples
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm trying to solve a Sieve of Eratosthenes problem (primes).

http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes

 
Brandon Peeples
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. Found the solution to my troubles. My last while loop wasn't adding correctly because of my list.size(). Same with my previous loop.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!