New answers tagged

0 votes

Code-Golf: Lattice Points inside a Circle

APL(NARS), 25 chars {1+4×+/⌊√(⍵*2)-¨2*⍨¯1+⍳⍵} test: ...
Rosario's user avatar
  • 291
1 vote

Code-Golf: Lattice Points inside a Circle

JavaScript (ES7), 42 bytes f=(n,k=n)=>k--?((n*n-k*k)**.5<<2)+f(n,k):1 Try it online!
Arnauld's user avatar
  • 191k
0 votes

Code-Golf: Lattice Points inside a Circle

05AB1E, 9 bytes (Ÿn¬sãO@O Port of @KamilDrakari's Japt answer, so make sure to upvote that answer as well! Try it online or verify all test cases. (Runs ...
Kevin Cruijssen's user avatar
2 votes

Hamming numbers

Python 3.8 (pre-release), 97 bytes Inefficient but golfy. Lot's of keywords and whitespace, so potential for more golfing. ...
movatica's user avatar
  • 1,035
1 vote

Hamming numbers

Vyxal 3, 7 bytes ЧdḟG7<Ẇ Try it Online! Port of Emanrasu's Vyxal answer
pacman256's user avatar
  • 3,330
0 votes

Find the Factorial!

Google Sheets, 26 Bytes Anonymous worksheet function that takes input, \$n\$, from cell [A1] and outputs \$n!\$ to the calling cell. ...
Taylor Raine's user avatar
  • 8,320
0 votes

Find the Factorial!

Yabasic, 60 bytes Port of VBA answer. Sub f(n) If n Then Return n*f(n-1)Else Return 1EndIf End Sub Try it online!
Taylor Raine's user avatar
  • 8,320
0 votes

Find the Factorial!

VBA, 55 Bytes Subroutine that takes input \$n\$ and outputs \$n!\$ Function f(n) If n Then f=n*f(n-1)Else f=1 End Function
Taylor Raine's user avatar
  • 8,320

Top 50 recent answers are included