Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <html>
  2. <body style="background-color: #000;">
  3. <script>
  4. function start() {
  5. var cnum = 0
  6. cnum = cnum+1
  7. while (true) {
  8. setTimeout(function() {
  9. var txt = document.getElementById("txt");
  10. var txts = txt.innerText
  11. if (String(cnum/2).indexOf(".") == -1;) {
  12. var newstring = txts+"\n"+"Found Prime Number : "+String(cnum)
  13. txts.innerText = newstring
  14. }
  15. },100)
  16. }
  17. }
  18. </script>
  19. <div align="center">
  20. <button onclick="start()" style="background-color: white; font-size: 20px; color: white;"> Start Compilation
  21. </button>
  22. </div>
  23. <div style="color: white;" align="center" id="txt">
  24. </div>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement