Problem 241. Project Euler: Problem 7, Nth prime
Solution Stats
Problem Comments
-
6 Comments
Aw drat. I was going to submit the n'th prime problem until I saw this.
Sadly, I see there are too few test cases, and the problem is too easy to cook.
why 'nthprime' not allowed?
There's a really easy way to cheese this problem if you find it. It happens to lie in the comment John D'Errico made about there being too few test cases. I'd encourage you to do the problem properly without such a cheese
A good problem!
I'm really wondering about this cheese, as the problem is stupidly simple already. Even a proper solution is size 16. 25 if you really want to push huge numbers and use a proper upper bound on the nth prime.
Solution Comments
Show commentsProblem Recent Solvers1605
Suggested Problems
-
6018 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1724 Solvers
-
Determine the number of odd integers in a vector
792 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1189 Solvers
-
7197 Solvers
More from this Author51
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!