JS, 100
This is a first draft, I'll improve it asap:
Execute this in the console, it'll take less than a minute to compute and log the numbers.
p=[];for(i=2;1E6>i;i++)for(t=0,j=i;1E6>j;j+=i)t&&(p[j]=1),t=1;for(i=2;1E6>i;i++)p[i]||console.log(i)
This is a first draft, I'll improve it asap:
Execute this in the console, it'll take less than a minute to compute and log the numbers.
p=[];for(i=2;1E6>i;i++)for(t=0,j=i;1E6>j;j+=i)t&&(p[j]=1),t=1;for(i=2;1E6>i;i++)p[i]||console.log(i)