private static uint[] PrivateCollatzSequence(uint start) { var sequence = new List <uint> { start }; var next = start; while (next > 1) { next = LocalFunctionPerformance.PrivateCollatz(next); sequence.Add(next); } return(sequence.ToArray()); }
public int RunWithPrivateFunctions() => LocalFunctionPerformance.PrivateCollatzSequence(this.Value).Length;