Add bland check for the primes database file to exist.

This shitty primes file thing must be substituted asap with a truly accessible file.