Prime checking
Is there a way to check whether an integer is a prime or not in O(log(n))?
Leetcode Weekly 498 Solution Discussion