public UInt128 Evaluate(UInt128 n) { if (n <= maxUInt64) { return(hyperbolicSumUInt64.Evaluate((ulong)n)); } return(hyperbolicSumUInt128.Evaluate((UInt128)n)); }
public BigInteger Evaluate(BigInteger n) { if (n <= maxUInt64) { return(hyperbolicSumUInt64.Evaluate((ulong)n)); } if (n <= maxUInt128) { return(hyperbolicSumUInt128.Evaluate((UInt128)n)); } return(hyperbolicSumBigInteger.Evaluate(n)); }
private int T2Parallel(UInt128 n) { var result = (int)(hyperbolicSumParallel.Evaluate(n) & 3); Debug.Assert(result % 4 == new DivisionFreeDivisorSummatoryFunction(0, false, true).Evaluate(n) % 4); return(result); }
public ulong Evaluate(ulong n) { return(hyperbolicSumUInt64.Evaluate((ulong)n)); }