project euler #36 works