Processing math: 100%

Problem #146

A Very Easy Sum

A number is called special if when prime factorized as p1^{a1} * p2^{a2} * ... * pk^{ak} , then a_{i} <= 2 for all 1 <= i <= k .

Let S(N) be the sum of all special numbers from 1 to N .

Given S(10) = 47 and S(10^4) = 41586160

Enter S(123456789123456789) modulo 10^9+7.

Contributed by Saharsh Luthra

Solved by 19 users

Log in to submit answers.

Is something wrong?

Maintaining a collection of high quality questions is our top priority. If, however, you do find an error, report the problem and we'll make sure it is reviewed soon.