[RESOLVED] [HELP, C++] array with prime numbers

Hi, i'd need some help with a function...

well, i need to write a function with an array parameter and an int parameter.

that array has to be filled with first 10 prime numbers that are exact or higher than the int parameter...

and then i need an average value of those 10 prime numbers...

The problem is im not really sure how i should do the part to fill the array with prime numbers that are higher than that int?? So any code samples that does that would be really nice... (the average part shouldnt do much problems i think, so i only need for that array fill...)

Code:

int avgprimearray (int higharray[], int somenumber){

}

Re: [RESOLVED] [HELP, C++] array with prime numbers

posted in worng section, sorry :/