TheAlgorithms/C-Sharp

FactorialSequence.cs

deljohnson1 opened this issue · 2 comments

FactorialSequence.cs uses var n = 0; as an initializer, which turns n into an int; it should be a BigInteger.

BigInteger includes a constant of 1, so there is no need to create a new one.

The code can also be simplified and optimized.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

This issue was closed because it has been stalled for 7 days with no activity.