Is the test case for expecting “059” to be valid incorrect?
This should yield:
f(059) = (0 * 2) + 5 + (9 * 2 - 9)
= 0 + 5 + 9
= 14
Which is not evenly divisible by 10 and therefore NOT a valid SIN?
Is the test case for expecting “059” to be valid incorrect?
This should yield:
f(059) = (0 * 2) + 5 + (9 * 2 - 9)
= 0 + 5 + 9
= 14
Which is not evenly divisible by 10 and therefore NOT a valid SIN?
Oh wait… nevermind… STARTING FROM THE RIGHT!..