tea: arent you asking for something that its impossible? i am not sure, last time i read about this was about 2 years ago, theres is actually a contest like (rc5 or sety or ogr) where you get money if you find the next prime number.
ok sorry to have gone off on a rant, button line is, no one knows how many primes there are, so its impossible to have a generator with an infinite amount of numbers, its just not possible.
another thing to remember is, that most computer can only handle data in "types" boolean, int, long, etc. so each type has a limitation, so thats another factor why this is very difficult to do.
dam(ok im done talking out of my ass)