Prime Number Question Leetcode