예제 #1
0
        static ReusableDictionary()
        {
            LeftArray <ushort> primes = new LeftArray <ushort>(4791);

            for (ushort mod = 3; mod != 3 * 3; mod += 2)
            {
                primes.Add(mod);
            }
            for (ushort max = (ushort)(int)Math.Sqrt(int.MaxValue), mod = 11; mod <= max; mod += 2)
            {
                if (isPrime(mod))
                {
                    primes.Add(mod);
                }
            }
            ReusableDictionary.primes = primes.ToArray();
        }
예제 #2
0
 public string Join(char join)
 {
     return(AutoCSer.Extensions.ArrayExtension.JoinString(array.ToArray(), join));
 }