Skip to main content

Timeline for Sum of two squares

Current License: CC BY-SA 4.0

16 events
when toggle format what by license comment
Feb 7, 2022 at 19:57 history edited sinvec CC BY-SA 4.0
added 34 characters in body
Feb 7, 2022 at 13:15 comment added sinvec @badatgolf Thank you!
Feb 7, 2022 at 13:12 comment added badatgolf See this. Magic GCC stuff. But if you use this trick, the language you're competing in is C (GCC -O0)
Feb 7, 2022 at 12:54 history edited sinvec CC BY-SA 4.0
added 20 characters in body
Feb 7, 2022 at 12:49 comment added sinvec @AZTECCO What does g=g mean?:)
Feb 7, 2022 at 12:39 comment added AZTECCO Using a global variable as you did it's not allowed , you can pass a pointer. Here a small golf for you, and welcome to code golf
Feb 7, 2022 at 11:42 history edited sinvec CC BY-SA 4.0
added 51 characters in body
Feb 7, 2022 at 10:38 history edited sinvec CC BY-SA 4.0
added 58 characters in body
Feb 7, 2022 at 10:24 history edited sinvec CC BY-SA 4.0
deleted 126 characters in body
Feb 7, 2022 at 10:13 history edited sinvec CC BY-SA 4.0
added 84 characters in body
Feb 7, 2022 at 9:58 history edited sinvec CC BY-SA 4.0
added 70 characters in body
Feb 7, 2022 at 9:50 comment added Kevin Cruijssen Also, if you haven't seen it yet, tips for golfing in C and tips for golfing in <all languages> might be interesting to read through. :)
Feb 7, 2022 at 9:49 comment added Kevin Cruijssen Hi, welcome to CGCC. You can golf your answer by using for-loops instead of while-loops. Also, you currently have a hard-coded upper-bound of 2,000,000 (\$2\times1000^2\$), so you might want to mention that in your answer. Both shorter and more correct would be to use the input n instead of 1e3 though: 74 bytes
Feb 7, 2022 at 9:39 history edited sinvec CC BY-SA 4.0
edited body
S Feb 7, 2022 at 9:28 review First answers
Feb 7, 2022 at 10:47
S Feb 7, 2022 at 9:28 history answered sinvec CC BY-SA 4.0