First euler problem redone with a list comprehension