Sponsored
Use these hints if you're stuck. Try solving on your own first.
Write a helper function to count the number of set bits in a number, then check whether the number of set bits is 2, 3, 5, 7, 11, 13, 17 or 19.
Solve with full IDE support and test cases