Didn't really figure out what to do based on the prime number tips. I just switched the furniture from dirty to clean and back until I hit the ending.