Project Euler Problem 76 Solution

Question

It is possible to write five as a sum in exactly six different ways:

4+13+23+1+12+2+12+1+1+11+1+1+1+1\begin{aligned} &4 + 1 \\ &3 + 2 \\ &3 + 1 + 1 \\ &2 + 2 + 1 \\ &2 + 1 + 1 + 1 \\ &1 + 1 + 1 + 1 + 1 \end{aligned}

How many different ways can one hundred be written as a sum of at least two positive integers?

Haskell

Python