The first part of my approach was figuring out how to determine whether a number was prime or not. It took me several different phases before I settled on the ancient algorithm of Sieve Of ...