bug fix to prime question