#K59102. Nth Prime Number

    ID: 30790 Type: Default 1000ms 256MiB

Nth Prime Number

Nth Prime Number

Given a positive integer \(n\), your task is to compute the \(n^{th}\) prime number. The sequence of prime numbers starts as \(2, 3, 5, 7, \dots\). If an invalid input (i.e., \(n \leq 0\)) is provided, you should output "None".

inputFormat

The input consists of a single integer \(n\) provided through standard input (stdin).

outputFormat

Output the \(n^{th}\) prime number to standard output (stdout). For invalid input (i.e., when \(n \le 0\)), output "None".

## sample
1
2