Click here to Skip to main content
15,893,266 members
Articles / Programming Languages / C#

Efficient prime test

Rate me:
Please Sign up or sign in to vote.
4.60/5 (6 votes)
12 Nov 2013CPOL1 min read 16.3K   49   5  
The IsPrime algorithm will always find a number that divides n if it is composed.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Serbia Serbia
Computer Scientist and book author living in Belgrade and working for a German IT company. Author of Practical Artificial Intelligence: Machine Learning, Bots, and Agent Solutions Using C# (Apress, 2018) and PrestaShop Recipes (Apress, 2017). Lover of Jazz and cinema Smile | :)

Comments and Discussions