1474B
My solusion is to get all prime numbers. To do a question, we need to find Answer1 equals the minimum prime number that is at least d from 1 and Answer2 equals the minimum prime number that is at least d from Answer1
So, print (Answer1 * Answer2)
Code:104907961
(Sorry for my poor English :P)