Topic: Language Problem / Level: intermediate

Problem: Write a program to find the smallest prime factor of a number using trial division.

Run the code to see the output here...