idiot-code-golf

Stupid solutions to simple problems.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
<html>
	<head>
		<title>Get next prime</title>
		<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah">
		<style>
			body {
				width: 100%;
				height: 100%;
				background-color: #0000BF;
				color: #00FF00;
				font-family: "Comic Sans", "Gloria Hallelujah", sans-serif;
			}
		</style>
	</head>
	<body>
		<h1>FILL OUT THIS FORM TO GET THE NEXT PRIME NUMBER</h1>
		<input type="number" id="n">
		<button onclick="getNextPrime()">Tell me!</button
	</body>
	<script>
		function getNextPrime(){
			var n = document.getElementById('n').value;
			window.location.replace("https://www.wolframalpha.com/input/?i=1st+prime+after+"+n);
		}
	</script>
</html>