Check if a number is a prime by one of the methods?

Is prime via method?

Uses one of the given methods to calculate list of primes.
Show first primes via method?

Speed benchmarks in ms.
Method / Primes count10,000100,0001,000,000
Direct7042310920
Set Sieve*110238
Dictionary9642--
Direct Cached843628219

* Set Sieve method takes around 4s to initialise and afterwards it is just using precalculated sieve.