PrimeGen is a simple tool for generating all prime numbers less than a user-defined upper bound (max. 3,400,000). It can also test any positive integer (max. 4,294,967,295) for primality or otherwise factorize composites. Generated primes can be viewed in an output file and graphically studied via MatLab(TM) using the additional vector output.