max = 20;
for p = 2 to max do
	{
		isPrime = true;
		i = 2;
		while i * i <= p do
			{
				if p / i * i == p then
					isPrime = false;
				i = i + 1;
			}
		if isPrime then
			print( "%d is prime\n", p );
	}
