since b has to be prime when n equals zero