public void TestGetLargestPrime()
        {
            // Arrange
            LargestPrimeViewModel largestPrimeViewModel = new LargestPrimeViewModel();
            ulong expectedRsult  = 1;
            ulong expectedRsult2 = 6857;

            // Act
            ulong actualResult  = largestPrimeViewModel.GetLargestPrime(1);
            ulong actualResult2 = largestPrimeViewModel.GetLargestPrime(600851475143);

            // Assert
            Assert.Equal(expectedRsult, actualResult);
            Assert.Equal(expectedRsult2, actualResult2);
        }
 private void BtnSum_Click(object sender, RoutedEventArgs e)
 {
     if (!ulong.TryParse(TbInput.Text, out ulong input))
     {
         if (input == 0)
         {
             input = 6_008_514_751_43;
         }
     }
     TbBesult.Text = String.Format("{0}'s largest prime factor number is: {1}",
                                   input, largestPrimeViewModel.GetLargestPrime(input));
     TbInput.Text = "";
 }