Skip to content

Latest commit

 

History

History

P013

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Problem 013

Write a program to calculate the prime factors of input integers.

Persian Description

برنامه ای بنویسید که یک عدد از ورودی دریافت کرده و فاکتورهای اول آن را چاپ کند

Sample Input/Output

Input:

4
42
88
39

Output:

Prime factors of 4 are [2, 2]
Prime factors of 42 are [2, 3, 7]
Prime factors of 88 are [2, 2, 2, 11]
Prime factors of 39 are [3, 13]