Japt, (削除) 10 (削除ここまで) 7 bytes
Saved 3 bytes thanks to @Luke and @ETHproductions
*8Ä ¬v1
##Explanation: *8Ä ¬v1 ¬ // Square root of: *8 // Input * 8 Ä // +1 v1 // Return 1 if divisible by 1; Else, return 0
###10-byte Solution:
õ å+ aU >J
##Explanation: õ å+ aU >J õ // Create a range from [1...Input] å+ // Cumulative reduce by addition aU // Return the last index of the input >J // > -1
Oliver
- 7.9k
- 2
- 19
- 38