def sushu(num):for i in range(2,num):if num%i==0:return'false'else:continue return'true'if __name__=='__main__':list1=num_list()for i in range(len(list1)):num=int(list1)if(sushu(num)=='true'):print(num)