Super Factor SumProblem code: FACTSUM |
All submissions for this problem are available.
Given a positive integer K > 2, with prime factorization: K = p1^a1 * p2^a2 ... * pn^an Compute the following: S = a1*p1 + a2*p2 ... + an*pn.
Input
A list of <100 integers, one on each line, all less than 2*10^19.
Output
For each integer compute the super factor sum and output it on a single line.
Example
Input: 6 7 Output: 5 7
| Date: | 2008-12-01 |
| Time limit: | 30s |
| Source limit: | 50000 |
| Languages: | C C99 strict C++ PAS gpc PAS fpc JAVA NICE JAR C# C#2 NEM ST ASM D FORT ADA BASH PERL PYTH RUBY LUA ICON PIKE PHP SCM guile SCM qobi LISP sbcl LISP clisp HASK CAML CLPS PRLG WSPC BF ICK TEXT |
Comments

Fetching successful submissions

Please post all your doubts
Please post all your doubts here or mail it to algothika.algochallenge@gmail.com
ALGOTHIKA ORGANIZER
Nirley Gupta
Join us also on
Join us also on facebook
ALGOTHIKA
do we have take the inputs
do we have take the inputs till EOF??
In the input cases given in
In the input cases given in the problem, the number of test cases are not mentioned or there is no symbol signifying the end of test cases.
@ robin eof se terminate hoga
@ robin
eof se terminate hoga input
Problem in Submission: I am
Problem in Submission:
I am trying to submit the solution but the submission of my file keeps on running without displaying the result. I have already waited for 10 minutes for getting my code checked...
Plzz help!!
Just go to your account and
Just go to your account and check on recent activity................
i get a runtime error here.
i get a runtime error here. Although I have the same problem accepted on SPOJ. Please check.
wat is meant by eof?? i m nt
wat is meant by eof??
i m nt getting till what value we have to take inputs??
@Khyati eof means end of
@Khyati
eof means end of file.......
just thing about it.. u will get it...
@khyatigupta: You have to
@khyatigupta: You have to take input as long as it is given.