StoneX Interview Question

Python check for a prime