Wrote prime number detection code for numbers 2-1000