Skip to content

Instantly share code, notes, and snippets.

@MeinLiX
Last active October 12, 2021 15:45
Show Gist options
  • Save MeinLiX/07d5dabd33c63aa2587bab7396a52281 to your computer and use it in GitHub Desktop.
Save MeinLiX/07d5dabd33c63aa2587bab7396a52281 to your computer and use it in GitHub Desktop.
Procces loader .net 6
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Threading;
Enumerable.Range(1, 7).ToList().ForEach(n =>
{
static BigInteger factorial(BigInteger a, BigInteger b)
{
BigInteger res = a;
while (a < b) res *= ++a;
return res * b;
}
new Thread(() =>{factorial(BigInteger.Parse("1"), BigInteger.Parse("18446744073709551615"));}).Start();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment