Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

5 of 7
added 188 characters in body
Oliver
  • 7.9k
  • 2
  • 19
  • 38

Japt, (削除) 10 (削除ここまで) 7 bytes

Saved 3 bytes thanks to @Luke and @ETHproductions

*8Ä ¬v1

Try it online!

##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

Try it online!

##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

AltStyle によって変換されたページ (->オリジナル) /