CodeChef is a non-commercial competitive programming community
Login
Username (New User? Signup) Password (Forgot Password?)
Signup
Login or
Signup with
Connect
Note
  • Publicize your achievements on your Facebook Wall.
  • Challenge your friends or ask them for help.

Site Navigation

  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
    • February CookOff
    • February Long Contest
    • January CookOff
  • DISCUSS
    • Wiki
    • Forums
    • Blog
    • Twitter
  • COMMUNITY
    • CodeChef Meetups
    • Campus Chapters
    • Host your Contest
    • User Groups
    • CodeChef TechTalks
    • All Educational Initiatives
    • Event Calendar
  • HELP
    • Frequently Asked Questions
    • FAQ for problem setters
    • Problem Setting
    • Ranks
    • Tutorials
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CodeChef Financials
    • CodeChef Sponsorships
    • CEO's Corner
    • Contact Us
    • About Directi
Home » Compete » Algothika 2010 » Super Factor Sum

Super Factor Sum

Problem code: FACTSUM

  • All Submissions

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


  • Submit

Comments

  • Login or Register to post a comment.

Please post all your doubts

nirley.gupta @ 4 Mar 2010 08:10 PM

Please post all your doubts here or mail it to algothika.algochallenge@gmail.com

ALGOTHIKA ORGANIZER

Nirley Gupta

Join us also on

nirley.gupta @ 4 Mar 2010 08:42 PM

Join us also on facebook

ALGOTHIKA

do we have take the inputs

gaurav17 @ 5 Mar 2010 08:11 PM

do we have take the inputs till EOF??

In the input cases given in

Rohin Mehra @ 6 Mar 2010 08:24 PM

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

gourav_roy2009 @ 6 Mar 2010 11:05 PM

@ robin

eof se terminate hoga input

Problem in Submission:   I am

JunkYard @ 7 Mar 2010 03:05 PM

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

nirley.gupta @ 7 Mar 2010 06:55 PM

Just go to your account and check on recent activity................

i get a runtime error here.

pr0ton @ 8 Mar 2010 04:10 PM

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

khyatigupta @ 8 Mar 2010 07:34 PM

wat is meant by eof??

i m nt getting till what value we have to take inputs??

@Khyati eof means end of

nirley.gupta @ 8 Mar 2010 07:40 PM

@Khyati

eof means end of file.......

just thing about it.. u will get it...

@khyatigupta: You have to

alok @ 10 Mar 2010 02:43 PM

@khyatigupta: You have to take input as long as it is given.

SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:

Programming Competition Fetching successful submissions
Directi Go for Gold
CodeChef is a global programming communityCodeChef hosts online programming competitions
CodeChef is a non-commercial competitive programming community
  • About CodeChef
  • About Directi
  • CEO's Corner
  • C-Programming
  • Programming Languages
  • Contact Us
© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to copyright@codechef.com
CodeChef a product of Directi
The time now is:
CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of computer programming. At CodeChef we work hard to revive the geek in you by hosting programming contests on a monthly basis. We also aim to have training sessions and events related to online programming for programmers around the world. Apart from providing a platform for programming competitions, CodeChef also has various tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our judge accepts solutions in over 35+ programming languages. Online programming was never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming competitions that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly programming contests and the shorter format Cook-off programming contests. Put yourself up for recognition and win great prizes. Prizes worth up to Rs.20,000 and $700 are up for grabs every month along with lots more CodeChef goodies.

Discuss

Are you new to computer programming? Do you need help with algorithms? Then be part of CodeChefs Forums and interact with all our programmers love helping out other programmers and share their ideas.

CodeChef Community

As part of our Educational initiative, we give institutes the opportunity to associate with CodeChef in the form of Campus Chapters. Hosting online programming competitions is not the only feature on CodeChef. Be a part of the CodeChef community through CodeChef meetups and techtalks. You can also host a programming contest for your institute on CodeChef and be a guest author on our blog.

Domain Name Registration, Web hosting, and Website Design provided by BigRock.com