Printing every 1000 soultions