Multiple error: class, interface, or enum expected
<pre><code>public static boolean prime(int n){
    if(n&lt;=1)
        return false;
    int z=2;
    if(n==2)
        return true;
    while(z&lt;Math.sqrt(n)){
        if(z mod n==0)
            return false;
        z++;
    }
    return true;
}
</code></pre>

<p>Any clues what is wrong with my code?
I am receiving 7 errors of "class, interface, or enum" expecting...</p>
