Prime factors ui script