Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- BigRational ratio = 1;
- BigInteger i = 1;
- while (i < BigInteger.Parse("10000000000000000000000000000") && ratio > 0.5)
- {
- BigRational ratio2 = new BigRational(BigInteger.Pow(32, 36) - i) / BigInteger.Pow(32, 36);
- ratio = ratio * ratio2;
- ++i;
- if (i % BigInteger.Parse("10000000") == 0)
- {
- Console.WriteLine("Current Step is: {0} at {2}\nRatio is: {1}\n", i, ratio, DateTime.Now);
- }
- }
- Console.WriteLine("Number is: {0}", i);
- Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement