please hellllllllllp!!!

Hi guys .. Can you help me to find a code to the following example, and I hope you bring him in as soon as possible (>>PLEASE<<)
( in windows of course)

* Prime Numbers;
Given the Triangle of primes:
2
3 5
7 11 13
17 19 23 29
31 37 41 43 47
53 59 61 67 71 73
....
The sum of the 6th row is 384. Write a C++ Program to Calculate the sum of row (n).

PLEASE HELP ME..It's Important.
It's always important, it's always urgent. We don't do other people's homework. Try your best, then ask for help on specific parts. NEVER ASK FOR THE WHOLE THING. We hate your lazy kind.
I know that, but I tried again and again on the code but I did not succeeded in that one ..

I hope you help me with this..because I have no enough time..
And I also have a tests I should care about it.

Can you help me in this time only? I promise ..PLEASE..!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <iostream>
#include <cstdlib>

using namespace std;

const int MAXDIM = 10;
const int PRIMTRI[10][10] = {
{2, 0},
{3, 5, 0},
{7, 11, 13, 0},
{17, 19, 23, 29, 0},
{31, 37, 41, 43, 47, 0},
{53, 59, 61, 67, 71, 73, 0},
{ 0 }
};

int main()
{
	int i = 0, j = 0;
	for(i = 0; i < MAXDIM; i++) {
		if(PRIMTRI[i] == 0)
			break;

		for(j = 0; j < MAXDIM; j++) {
			if(PRIMTRI[i][j] == 0)
				break;

			cout << PRIMTRI[i][j] << " ";
		}

		cout << endl;
	}

	system("pause");
  return 0;
}


Really hard work of 2 min. -.-*
On this template you should be able to extend the code for your needs...
OK
Thanks for the help .. really I appreciate it.
but he want:

(The sum of the 6th row is 384. Write a C++ Program to Calculate the sum of row (n)..)

could you help !
See, shadow123? Now it is not that part he has a problem with, it's some other part. He'll now say "oh that part I knew, what I really needed was the other part", but we'll never know because you provided that part.

Feel free to continue solving his homework for him. Your time, not mine.
His homework is not part of my life. I've had free time left so I've tried to give him a stroke.
It's infantile that I got reported only because I showed him one possible starting point for the solution. But I'm smart, so I don't care about that kind of shit.
Well, thank you all for all what you said and what you did, I asked you to help .. I did not ask you to give me your life..?
But only to help me ! .. you have an experience in c++ programming, but I do not have !.. if I have I Would not ask you that

Thank you for interest in the subject .. peace
Topic archived. No new replies allowed.