## February 2017 Fiendish Function

The Fiendish Function posed during February 2017 had the following sample guesses and replies:

- 1
- 5
- 2
- 10
- 3
- 26
- 4
- 50
- 5
- 122
- 10
- 842

The rule was: "The nth prime, square it, then add one".

Suppose the guess was 12:

- Find the twelfth prime, giving 37.
- Multiply the number by itself, giving 1369.
- Add one, giving 1370.

So the result is 1370.

## Earlier answers

Here are the answers to the Fiendish Functions posted in earlier months: