# Search:

Type: Posts; User: CodeNewb

1. ## Thread: Printing Sum of Primes of a number

by CodeNewb
Replies
9
Views
6,186

### 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. ## Thread: Printing Sum of Primes of a number

by CodeNewb
Replies
9
Views
6,186

### 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. ## Thread: Printing Sum of Primes of a number

by CodeNewb
Replies
9
Views
6,186

### 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.

by CodeNewb
Replies
9
Views
6,186

The later...
5. ## Thread: Printing Sum of Primes of a number

by CodeNewb
Replies
9
Views
6,186

### 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. ## Thread: Stuck -- Loop Pattern

by CodeNewb
Replies
1
Views
1,453

### 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