<body>
This is my JSP page. <br>
<%!
int counnum(){
int i=0, j=0,count=0;
for(i=1;i<=100;i++){
for(j=2;j<i;j++){
if(i%j==0){
break;
}
}
if(i==j){
count=count+i;
}
}
return count;
}
%>
1—100之间的所有素数之和:
<%=counnum() %>
</body>