Hi! I just got this question and don't know if this is stupid or really challenging.I am getting 0 marks always.I am posting this just for fun here :P .Tell me your high score for this.
Update :- Guys this is some sort of challenge to all.Post your score if you want.I am not asking for help in this question.This is just for fun and challenge.Btw thanks and sorry to all who came out for help.
how about just generating all such primes offline, say in 5-10 mins.. then just adding print before each number and submitting python file
You can get memory limit easily 10^9 int is about 1gb
Lol just use precalculating