Print the prime factors of each specified integer NUMBER

commandline session

$factor
5
5: 5
6
6: 2 3
7
7: 7
8
8: 2 2 2
9
9: 3 3
10
10: 2 5
11
11: 11
^C
$factor  12
12: 2 2 3
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s