Plus you probably learn more coding the algorithm into a calculator than you would learn regurgitating something from memory. That's a win either way.
If the rules say 'no computer assistance', and you break those rules in a way the test monitors didn't expect, the only people you are cheating are other students.