By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10001st prime number?
what you have to do is traverse and check if the number is prime. The most important concept to remember is
- 2 is the only EVEN prime number
- 3 onwards all prime numbers are ODD
- a number is considered to be prime if it is Divisible by any number Less Than or Equal To SQUAREROOT of (Suspected Number).
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class PrimeAtPlace
{