it adds loads (1000) numbers to a list deletes every 2 numbers (apart from 2) deletes every 3 numbers (including the deleted ones)(apart from 3) ... you're left with only prime numbers! this one adds more numbers (so there are 1000 again) and checks those, then repeats until there are 1000 prime numbers its very slow :\