diff options
Diffstat (limited to 'progs/a113.py')
-rw-r--r-- | progs/a113.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/progs/a113.py b/progs/a113.py new file mode 100644 index 0000000..39ed034 --- /dev/null +++ b/progs/a113.py @@ -0,0 +1,19 @@ +def count_Fac(n):
+ m = n
+ count = 0
+ i = 2
+ while((i * i) <= m):
+ total = 0
+ while (n % i == 0):
+ n /= i
+ total += 1
+ temp = 0
+ j = 1
+ while((temp + j) <= total):
+ temp += j
+ count += 1
+ j += 1
+ i += 1
+ if (n != 1):
+ count += 1
+ return count
\ No newline at end of file |