use std::list in type of primes