What do you think about following the code to check prime numbers? :
namespace PrimeNumbersLib
{
public class PrimeAlgorithms
{
public static bool IsPrimeNumber(ulong nr)
{
ulong half = nr / 2;
if (nr == 0 || nr == 1)
{
return false;
}
for (ulong i = 2; i