Changed recursion to be more efficient. Managed to get the heap space to accept the input '25'. Program now crashes on the input '26'. Good work, team.