What is the goal of Prime Check?
Practice this question from Prime Check - Square Root Trial Division Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Prime Check?
Option A — Correct answer
Decide whether n is prime.
Option B
Sort the input and return the middle value
Option C
Use a stack for bracket matching only
Option D
Build a graph adjacency list only
Explanation
Decide whether n is prime.