problem7 finds the nth prime

problem7(limit)

Arguments

limit

Limit to run the interval

Value

The expected value

Complexity

This function has the following complexity O(n$^ 3 2 $)

See also

https://projecteuler.net/problem=7 for more info about it

Examples

problem7(13)
#> [1] 41
problem7(50)
#> [1] 229
problem7(100)
#> [1] 541