implement a simple prime number generator in a number of languages, and compare performance