public static bool?IsPrimeByList(this int x) { if (x % 2 == 0) { return(false); } if (x > PrimeList.Last()) { return(null); } return(PrimeList.BinarySearch(x) >= 0); }