Search:

Type: Posts; User: CodeNewb

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    8,163

    Re: Printing Sum of Primes of a number

    I doubt I would of ever figured it out... Thanks for you help.

    I like this by the way, I'm just learning java and I think this is neat...


    SumOfPrimes sop = new SumOfPrimes();...
  2. Replies
    9
    Views
    8,163

    Re: Printing Sum of Primes of a number

    I tried going back to the basic of is a number prime and working it that way, and I sort of see the problem... How do I kept the sum going even though that loop is changing it?



    import...
  3. Replies
    9
    Views
    8,163

    Re: Printing Sum of Primes of a number

    So that shouldn't even be part of the test. I'm confused then about what I need to do, I have been scratching my head all day it seems... I thank you for the help.
  4. Replies
    9
    Views
    8,163

    Re: Printing Sum of Primes of a number

    The later...
  5. Replies
    9
    Views
    8,163

    Printing Sum of Primes of a number

    I'm trying to print the sum of the prime numbers of a given number from the console. I think my test in my while loop might be wrong, but I'm not 100% sure. Any help, I would appreciate. Thanks in...
  6. Replies
    1
    Views
    3,554

    Stuck -- Loop Pattern

    I'm trying to produce this pattern, and I need help with my loop statements...

    -----1-----
    ----333----
    ---55555---
    --7777777--
    -999999999-
Results 1 to 6 of 6