Aniruddha has posted 40 posts at DZone. View Full User Profile
public bool IsPrime(int num)
bool _isPrime = true;
if (num % 2 == 0) return false;
for (int i = 3; i <= Convert.ToInt32(Math.Sqrt(num)); i = i + 2)
if (num % i == 0)
_isPrime = false;
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...