Jump to content

Compiler/lexical analyzer: Difference between revisions

m
Formatting
m (Formatting.)
m (Formatting)
Line 126:
 
<lang c>
count=1;n=1;limit=100;while(n<limit){k=3;p=1;n=n+2;while((k*k<=n)&&(p)){p=n/k*k!=n;k=k+2;}if(p){print(n, " ");count=count+1;}}print(count, "\n");
</lang>
 
155

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.