Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 2 of 2
Search took 0.03 seconds.
Search: Posts Made By: mkrahmeh
Forum: Post a PHP snippet 07-01-2009, 08:31 AM
Replies: 7
Views: 18,833
Posted By mkrahmeh
it used to be a prime :) it has been a...

it used to be a prime :)
it has been a controversial issue, but recently its more accepted to consider 1 as a non prime..
http://mathworld.wolfram.com/PrimeNumber.html...
Forum: Post a PHP snippet 06-30-2009, 10:30 AM
Replies: 7
Views: 18,833
Posted By mkrahmeh
its useful indeed..thx :thumbsup: but note...

its useful indeed..thx :thumbsup:

but note that your algorithm considers 1 as a prime and discards 2..
actually 1 is not a prime, and 2 is the only even prime..
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT +1. The time now is 02:23 PM.