Generate Big Prime using Java