JS1k: The JavaScript code golfing competition
2010 - The Original
- Author:
- Charleston Waltnikki
- Twitter:
- @
- GitHub:
- Facebook:
- Google+:
- +
- Reddit:
- /r/
- Pouet:
- Website:
- trotspot.appspot.com
- Compo:
- classic
- Demo link:
- https://js1k.com/2010-first/demo/90
- Shortlink:
- https://js1k.com/90
- Blog post:
- please update here!
- Bytes:
- 140
- Chars:
- 140
- Submission
n=-1;p=0;setInterval(function(){document.body.innerHTML='<a style=color:rgb('+n%512+',0,'+n+99%256+')>'+Math.sqrt(8*(p+=(1/((n+=2)*n))))},0)
- Description
- Computes pi in a non-optimal fashion.
- Base64 encoded
bj0tMTtwPTA7c2V0SW50ZXJ2YWwoZnVuY3Rpb24oKXtkb2N1bWVudC5ib2R5LmlubmVySFRNTD0nPGEgc3R5bGU9Y29sb3I6cmdiKCcrbiU1MTIrJywwLCcrbis5OSUyNTYrJyk+JytNYXRoLnNxcnQoOCoocCs9KDEvKChuKz0yKSpuKSkpKX0sMCk=
- Original source
Original source not submitted