Some solutions.

Two problems solutions:
 - prime-number
 - sum-of-array-plus-one