You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Глава 25. Практически изпит по програмиране (тема 2) 1063<br />
private static bool IsPrime(int number)<br />
{<br />
if (number == 2)<br />
{<br />
return true;<br />
}<br />
if (number % 2 == 0)<br />
{<br />
return false;<br />
}<br />
}<br />
int maxDivider = (int)Math.Sqrt(number);<br />
for (int divider = 3; divider