Exercises...

Yeah, this was a bit of a headfuck.  For the prime check, you can smart-match @divisors against an empty array.