You are viewing a single comment's thread. Return to all comments →
Nice job solving the problem. It's runtime is O(n). If you want a faster solution, see my original comment above, since it's O(n^(1/2)) runtime.
HackerRank solutions.
Seems like cookies are disabled on this browser, please enable them to open this website
Prime Checker
You are viewing a single comment's thread. Return to all comments →
Nice job solving the problem. It's runtime is O(n). If you want a faster solution, see my original comment above, since it's O(n^(1/2)) runtime.
HackerRank solutions.