Skip to content

Instantly share code, notes, and snippets.

Avatar

bruno nogent bnogent

  • Paris
View GitHub Profile
@bnogent
bnogent / PrimeFactorizationCalculator.cs
Created Oct 21, 2019
Prime Factorization Calculator
View PrimeFactorizationCalculator.cs
static void PrimeFactorizationCalculator(int value)
{
int r = value;
List<int> list = new List<int>();
int i = 2;
bool cont = true;
int res=-1;
while (cont)
{
if (!Enumerable.Range(2, i-2).Any(o => i % o == 0))