tests for the function to get a digit
we're going to need this, so test it
this makes the unit tests pass
and it gets the right answer for the euler problem
this looks useful
I'm worried about these
this is less wasteful but harder to understand :s