Prime Numbers by Team Titans

t,c,i,c1=int(input()),0,2,0
while c<t:
 for j in range(1,i+1):
  if i%j==0:
   c1+=1
 if c1==2:
  print(i)
  c+=1
 i+=1
 c1=0

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page