Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find all prime numbers in the <code>nums</code>.
Find the first and the last prime number in the <code>nums</code>.
Solve with full IDE support and test cases