Professor's solution has these fixes. Looks like it fixes the prime.mips example at least.