Home > front end >  Output all prime Numbers between 1-100 (prime)
Output all prime Numbers between 1-100 (prime)

Time:12-02

<script type="text/javascript">
For (var I=2; I <=100; I++) {
Var falg=true;
For (var j=2; J If (I % j==0) {
Falg=false;
//break;
}
}
If (falg) {
Document. The write (I)
}
}
</script>
  • Related