Express a given number as a summation of 4 positive primes...

Discussion in 'C' started by rehansheikh, Jul 1, 2011.

  1. rehansheikh

    rehansheikh New Member

    Joined:
    Jul 1, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    C++ program for :
    Express a given number as a summation of 4 positive primes...

    suppose input is 28
    then output should be 7 11 3 7
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Not difficult. How far have you got and where are you stuck?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice