Prime Number Problem Leetcode