Skip to main content

Timeline for Is this number a prime?

Current License: CC BY-SA 4.0

13 events
when toggle format what by license comment
Feb 2, 2022 at 2:40 comment added Razetime (load library is 1 byte shorter than lib/math
Feb 1, 2022 at 19:15 history edited ophact CC BY-SA 4.0
deleted 4 characters in body
Feb 1, 2022 at 19:15 comment added ophact @DLosc Thanks. Didn't know that standard tricks such as adding/subtracting booleans worked in tinylisp too!
Feb 1, 2022 at 19:04 history edited ophact CC BY-SA 4.0
added 85 characters in body
Feb 1, 2022 at 18:53 comment added DLosc Sadly, there are no default arguments in tinylisp (unless you use a variadic function and check the number of arguments by hand, which almost certainly costs more bytes). You may be interested in the related language Appleseed, which does support default arguments.
Feb 1, 2022 at 13:25 history edited ophact CC BY-SA 4.0
added 18 characters in body
Feb 1, 2022 at 13:25 comment added Razetime Try it online!
Feb 1, 2022 at 13:25 comment added ophact @Razetime Ah, thanks for that.
Feb 1, 2022 at 13:24 comment added Razetime also you can remove all the end of line closing parens
Feb 1, 2022 at 13:22 comment added ophact @Razetime yes, was already covered by another answer.
Feb 1, 2022 at 13:21 comment added Razetime lib/math has a prime? function which is still a valid answer.
Feb 1, 2022 at 12:20 history edited ophact CC BY-SA 4.0
added 532 characters in body
Feb 1, 2022 at 12:13 history answered ophact CC BY-SA 4.0