Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var liczba_dzielnikow;
  2.  
  3. for(i=1;i<100;i++){
  4. liczba_dzielnikow=0;
  5. for(k=1; k<=i; k++){
  6. if(i%k==0){
  7. liczba_dzielnikow++;
  8. }
  9. }
  10.  
  11. if(liczba_dzielnikow==2){
  12. document.write(i+"<br>");
  13. }
  14. }
  15.  
  16. alert("4iA - PAMIĘTAMY");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement