Prime number question

Sir prime number question ko while loop use na Kar Ka for loop use karanga tho problem nehi koga na!

@Shobhan,
There shouldn’t be any problem. If you face any problem/error, please share your code with the problem statement?