Changed assert to not fail if 1 input

If 1 is the input then the cycle length should be 0, so i changed the
assert to accept numbers greater than or equal to 0.