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
õ å+ øU
###Explanation: õ å+ øU õ // Create a range from [1...Input] å+ // Cumulative reduce by addition øU // Does it contain the input?
Oliver
- 7.9k
- 2
- 19
- 38