Jump to content

Eban numbers: Difference between revisions

→‎{{header|K}}: more concise
m (→‎{{header|K}}: more idiomatic)
(→‎{{header|K}}: more concise)
Line 1,405:
=={{header|K}}==
{{works with|ngn/k}}
<syntaxhighlight lang=K>eban: {1_((x<)_,/(,/(2*!4)+/:10*0,3+!4)+/:1000*,/)/0}
 
#eban 1000
19
#{x[&(1000<x]}eban>)_eban 4000
21
#eban 1e4
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.