Hi, I was wondering what A)the fastest way to find primes is, the fastest I've found so far is the sieve of Eratosthenes. B) The fastest way to find all possible combinations of a set are. e.g. cat-> act,cta,tca,atc,tac,cat any help appreciated. thanks in advance.