Prime factors from UI are calculated and results returned