added primes example func