Seol mar théacs é seo: Detecting squarefree numbers