Update factoring-factorials.rkt

Fix for perfect squares and misunderstanding with hash-update!