Unable to solve

I’ve used everything from sieve to python modules. what to do ?

Please share link of your code after saving it on coding blocks ide.

You can’t use any inbuilt libraries and functions. You have to do the code from scratch yourself.
Try again to do it yourself.