fixed is_prime_blocks and implemented find_factors in blocks