correctly defined n_primes_rev_struct