Click here to Skip to main content
15,913,941 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.4K   49   5  
The IsPrime algorithm will always find a number that divides n if it is composed.

Views

Daily Counts

Downloads

Weekly Counts

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