Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,7 @@
|
|||
var a = [];
|
||||
for (var i = 1; i < 23; i++) a[i] = i + Math.floor(1/2 + Math.sqrt(i));
|
||||
console.log(a);
|
||||
|
||||
for (i = 1; i < 1000000; i++) if (Number.isInteger(i + Math.floor(1/2 + Math.sqrt(i))) === false) {
|
||||
console.log("The ",i,"th element of the sequence is a square");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue