Improve performance of the count semiprime challenge
Refactor count semiprime challenge
Made some changes to count semiprime challenge