What is wrong with this c# syntax?
===

    using System;
    public class Test
    {
    	public static void Main()
    	{
    		int n = 600851475143;
    		int x = 1;
    		While (x<n)
            {
	    	if(n%x==0)
                {
                    Console.WriteLine(x);
                }    
		    x++;
            }    
        }    
    }       

Gives me a { out of place error, but I can't see whats wrong. Anyone? 