Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body style="background-color: #000;">
- <script>
- function start() {
- var cnum = 0
- cnum = cnum+1
- while (true) {
- setTimeout(function() {
- var txt = document.getElementById("txt");
- var txts = txt.innerText
- if (String(cnum/2).indexOf(".") == -1;) {
- var newstring = txts+"\n"+"Found Prime Number : "+String(cnum)
- txts.innerText = newstring
- }
- },100)
- }
- }
- </script>
- <div align="center">
- <button onclick="start()" style="background-color: white; font-size: 20px; color: white;"> Start Compilation
- </button>
- </div>
- <div style="color: white;" align="center" id="txt">
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement