Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
50%
+0 −0
Challenges Solve Goldbach's Conjecture

J, 46 char ({.(+/m)#a),{:(+/"1 m=:x=+/~a)#a=:p:i._1 p:x=: Sample runs ({.(+/m)#a),{:(+/"1 m=:x=+/~a)#a=:p:i._1 p:x=:4 2 2 ({.(+/m)#a),{:(+/"1 m=:x=+/~a)#a=:p:i._1 p:x=:6 3 3 ({.(+/m)#a),{:...

posted 3y ago by torres‭

Answer
50%
+0 −0
Challenges Are All Elements Equal?

J, 5 char 2>#~. How it works: '~.' produces list of unique elements of list on its right '#' counts how many elements in the list on its right '2>' tests if number on its right only ha...

posted 3y ago by torres‭

Answer
50%
+0 −0
Challenges A number adder, not a death adder

J, 7 char '+/',": Sample runs: '+/',": 6 +/6 +/6 5 11 '+/',": 55 +/55 +/55 45 100

posted 3y ago by torres‭

Answer
50%
+0 −0
Challenges Golf a FRACTRAN interpreter

J, 36 char {._2{(}.,~(=<.)@v{.@#v=.}.*{.)^:(<_) Sample runs: {._2{(}.,~(=<.)@v{.@#v=.}.*{.)^:(<_) 1096135733 78r55 5r3 1r5 11r2 5r7 328842888196762472689573703 {._2{(}.,~(=...

posted 3y ago by torres‭  ·  edited 3y ago by torres‭

Answer
50%
+0 −0
Challenges Keyword golfing

C (gcc), 358 bytes static inline _Noreturn float f(union u);extern _Thread_local _Complex long double*restrict B;main(void){_Atomic register enum {A};typedef _Alignas(unsigned char)struct S;_Sta...

posted 3y ago by Lundin‭  ·  edited 2y ago by Lundin‭

Answer
50%
+0 −0
Challenges "Hello, World!"

JavaScript V8, 26 bytes console.log`Hello, World!`

posted 3y ago by danibarker‭  ·  edited 3y ago by danibarker‭

Answer
50%
+0 −0
50%
+0 −0
Challenges Make a frequency table (histogram)

JavaScript (Node.js), 38 32 bytes -6 bytes thanks to Shaggy! a=>a.map(v=>d[v]=-~d[v],d={})&&d Try it online! Basically just this but returning the result

posted 3y ago by Moshi‭  ·  edited 3y ago by Moshi‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

APL(Dyalog Unicode), 4 bytes SBCS Anonymous tacit prefix function. ,∘≢⌸ Try it on APLgolf! …⌸ between each unique element and its indices, apply: ,∘≢ concatenate the unique element to the ta...

posted 3y ago by Adám‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

C (gcc), 45, 42 bytes t[9999];f(s,a)int*a;{for(;s;)t[a[--s]]++;} Try it online! Assumptions: Passing the array size to a function can be used as a means to deal with empty arrays (not s...

posted 3y ago by Lundin‭  ·  edited 3y ago by Lundin‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

Lua, 98 bytes function(t)r={}for k,v in pairs(t)do r[v]=0 end for k,v in pairs(t)do r[v]=r[v]+1 end return r end Attempt This Online!

posted 3y ago by Zakk‭

Answer
50%
+0 −0
Challenges Evens or Odds - you know this one

Myby, 2 bytes %2 Input is taken from the command line implicitly. 0 for even, 1 for odd. Since Myby is still in its early stages, there is no online sandbox. Some test cases can be seen here.

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges Evens or Odds - you know this one

ESCR, 17 bytes show [and [in] 1] ESCR has no way to read from standard input (currently), so I assumed the existence of the function IN which magically returns the user input. Since the user i...

posted 3y ago by Olin Lathrop‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

Vyxal, 1 byte Ċ Try it Online! Yes, there really is a built-in for this.

posted 3y ago by lyxal‭

Answer
50%
+0 −0
Challenges Determine whether an integer is square-free

Factor, 108 bytes USING: assocs kernel math math.primes.factors ; IN: s : ? ( n -- ? ) group-factors [ nip 2 < ] assoc-all? ;

posted 3y ago by gifti‭  ·  edited 3y ago by gifti‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

Ruby, 12 bytes ->{_1.tally} Attempt it online!

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges Partial Sums of Harmonic Series

Goruby, 38 bytes ->n{dw{$.+=1;$..mp{1.0/-~_1}.su<n};$.} This was not as much fun as I thought it would be, but it was fun enough to use once.

posted 3y ago by south‭

Answer
50%
+0 −0
Sandbox Mark my beacons

posted 3y ago by Razetime‭

Article code-golf matrix
50%
+0 −0
Challenges Find n Niven Numbers

Japt, 10 bytes ÈvXìx}jU1ì Try it

posted 3y ago by Shaggy‭

Answer
50%
+0 −0
Challenges Make a frequency table (histogram)

Japt, 8 bytes ü ®â pZl Try it

posted 3y ago by Shaggy‭

Answer
50%
+0 −0
Challenges Create a range grid

Japt -m, 4 bytes VÆT° Try it

posted 3y ago by Shaggy‭

Answer
50%
+1 −1
Meta Filtering the sandbox for ease of feedback

Both tags and [FINALIZED] are problematic Problem with tags Having been shown the related meta post Separate the tags away from the Sandbox or delete the [finalized] tag I can now see that having...

posted 2y ago by trichoplax‭  ·  edited 2y ago by trichoplax‭

Answer
50%
+0 −0
Challenges Determine whether an integer is square-free

JavaScript, 31 bytes Outputs 0 for falsey and a non-zero value for truthy. If the 2 values must be consistent then replace the last * with && to output true instead. n=>(g=d=>d++&...

posted 2y ago by Shaggy‭  ·  edited 2y ago by Shaggy‭

Answer
50%
+0 −0
Sandbox 3D compass point from 3D coordinates

posted 2y ago by trichoplax‭  ·  edited 8mo ago by trichoplax‭