Which of the following numbers will replace the question mark (?) in the given series?

7, 17, ?, 137, 407, 1217