USAA Interview Question

leetcode, find the prime. this one is the easy one