legacy, prime, nth prime