There are several functions that come in handy many times, for example, for generating prime numbers. You can save a file with useful functions in them. Also, I don't think there is any benefit. Project Euler's problems are more related to mathematics than to complex programming, I expect that if you need to write a lot of code, you are doing it wrong.
source
share