Showing posts with label algorithms. Show all posts
Showing posts with label algorithms. Show all posts

Thursday, 4 November 2010

Finding if a number is a prime

Update 06/04/2012
Modified the for loop as proposed by Alan (comment #1) which makes the method roughly twice as fast.