All the smallest factors of a number must be its smallest factor, which for any number is 1, so:
loop
loop
loop
print "Enter an integer number: ":
input n
until num(n) do
print "Please enter a number"
repeat
until n = int(n) do
print "Please enter an integer"
repeat
print "Smallest factor of ":n:" is 1"
repeat