compute 1000th prime