Activity for Jo King
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Output 256 in many different ways [Raku], 18 solutions 256 ٢٥٦ ۲۵۶ ߂߅߆ ২৫৬ ᠒᠕᠖ 𑄸𑄻𑄼 4⁴ 0x100 ord Q`Ā` ''^'LKH' 888-88-88-88-88-88-88-88-8-8 99+99+9+9+9+9+9+9+?9+?9+?9+?9 ($=3333333)&&m|(3)(3)(3)(3)|&&$3$3 [[];[];[];[]]×[[];[];[];[]]×[[];[];[];[]]×[[];[];[];[]] "{"{7%%7%7}{7%7}7"%7}{"{7%%7%7}{7%%7%7}7"%7}{"{7%%7%7... (more) |
— | over 3 years ago |
Answer | — |
A: Shape of an array [Raku], 32 bytes {map +,($,[0]...^9 ge.gist)} Try it online! It's difficult to tell the difference between one element arrays and just plain numbers, since Raku translates between the two. However, `gist` returns the list formatted with brackets surrounding it, so we are able to ... (more) |
— | over 3 years ago |
Answer | — |
A: Length of a Sumac Sequence [Raku], 19 bytes {(|@,-...0>)-1} Try it online! { } # Anonymous code block ... # Create a sequence |@ # Starting with the input ,- # With each element being the difference between the previous two ... (more) |
— | over 3 years ago |
Answer | — |
A: Partial Sums of Harmonic Series [Raku], 27 bytes {+(\+...>=$)} Try it online! { } # Anonymous code block \+ # Get the partial sum of 1 X/ # 1 over each of 1.. # All positive integers ...>=$ # Take fr... (more) |
— | over 3 years ago |
Answer | — |
A: Evaluate a single variable polynomial equation [Raku], 19 bytes (Z(X0..)).sum Try it online! Is it concerning that my solution is over 30% asterisks? Explanation ( ).sum # Get the sum of Z( ) # The input list zip multiplied by X # The second input to the power of 0... (more) |
— | over 3 years ago |
Answer | — |
A: Prime Difference [Raku], 33 bytes {1+(3...{($^a...&is-prime)>=$})} Try it online! Anonymous code block that takes a number and returns a number. Explanation { } # Anonymous code block (3...{ }) # Increment from 3 until ( ... (more) |
— | over 3 years ago |