Alibaba Group Interview Question

Prime number, calculate probability for a event