As of now this is what I have written in:
Code:
#include <iostream>
using namespace std;

int main()
{
	int prime[500];
	int test = 3;
	int i = 1;

	cout << "\nThese are the first 500 prime numbers:\n";
	prime[0] = 2;
	for ()
	{
		while()
		{
			if ((test%prime[i]) = 0)
				test = test + 2;
			else
				prime[i + 1] = test;
		}
	}
I'm not quite sure what to put in the parameters for the for and while loops though...