2. Prime Numbers

Difficulty: 

Determine if a number is prime or not. Simple, eh? Be careful about the time limit.

Input:

isPrime(13);

Output:

true

Time Limit:

500 (ms)

Hints (hover to see):

  • Hint #1
  • Hint #2



Results

ProblemsAcceptedWrongTimed OutError
170000

Input:

Expected Output:

Output: