list of prime numbers Most elegant way to generate prime numbers [closed] ask question  to reiterate, i wanted a nice clean piece of code that generated a list of prime numbers i already know how to do it a bunch of different ways, but i'm prone to writing code that isn't as clear as it could be  what i would like to know is what is the least elegant way to.
{}