For an integer n, the prime little omega function, , is defined as the total number of distinct prime factors of n. So, if , since , therefore .
Given an integer n, write a function that evaluates the following summation:
For example for :
In this case therefore, the function should return .
NOTE: This is an easier version of the previous problem, 'Prime Big Omega of Factorial Sequence'. So, for an added challenge, you may enjoy prime factoring each number, as the MATLAB functions 'factor', 'primes' and 'isprime' will be disabled.

Solution Stats

8 Solutions

4 Solvers

Last Solution submitted on Mar 19, 2023

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...