Prime Number Generator in Different Languages (Same Algorithm)