コード例 #1
0
        static void Main(string[] _)
        {
            Random random      = new();
            ulong  number      = (ulong)random.Next();
            var    primeResult = PrimeCalculator.GetPrimes(number);

            var a = SubmitPrimeNumber(new PrimeRecord(number, primeResult.IsPrime, primeResult.Primes)).Result;

            Console.WriteLine(a);
        }
 public PrimeCalculationResult CalculatePrimes([FromQuery] PrimeRequest primeRequest)
 {
     return(PrimeCalculator.GetPrimes(primeRequest.Number));
 }