My attempt at project euler (don't judge)