## Introduction to Programming using Python 1st Edition

$Statement:$ (Find the factors of an integer) Write a program that reads an integer and displays all its smallest factors, also known as prime factors. $Code:$ while number/index!=1:     if number%index==0:         print("\b",index,", ")         number/=index     else:         index=index+1 print(number,".") $Output:$ Enter an integer:120 2 , 2 , 2 , 3 , 5