Prime Generator

i tried but i m not able to write exact output

Hey @tavinash391,
Share your code using Coding Blocks IDE. First write your code there and then share the link.

can you pls check this ??? i dont know how to write a code for this i did but its not excet

Your code is in C++ or Python?

def abc(n): for i in range(n): low,last=input().split() for i in range(int(low),int(last)): if i>1: for j in range(2,i): if(i % j==0): break else: print(i) n=int(input()) abc(n)

is this code written in c++ ???

Hey @tavinash391,
No, The code submitted by you on 5th september is of C++ --> Link

Your last code worked 100% so I think your problem is resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.