The residue of p(n) modulo small primes