Largest Prime Factor - Found An Alt Solution

I found a solution - it literally takes 0ms, makes me feel kind of
crappy but oh well, I know I've learnt something.