←ĐĐ3=?∧∧:ŕĐ2⇹Ř⇹Ľ⅟⌊⁺3=⇹Đ2⇹Ř%*ž1⇹∈;
说明:
←ĐĐ Push input onto stack 3 times
3=? : ; If input equals 3, execute code after the question mark;otherwise, execute code after the colon. In either case, afterwards, execute the code after the semicolon
∧∧ Get 'True'
: Input not equal to 3
ŕ Remove 'False'
Đ2⇹Ř Push [2,3,...,n]
⇹Ľ⅟⌊⁺ Push [floor(log_2(n))+1,floor(log_3(n))+1,...,floor(log_n(n))+1]
3= Is each element equal to 3
⇹ Swap the top two elements on the stack (putting n back on top)
Đ2⇹Ř Push [2,3,...,n]
% Push [n%2,n%3,...,n%n]
* Multiply [n%x] by the other array (i.e. is floor(log_x(n))+1=3?)
ž Remove all zeroes from the array
1⇹∈ Is 1 in the array?
; End conditional
Implicit print
在线尝试!
n
仅仅是n
1
s和例如0 = ()₁
,3 = (111)₁
,10 = (1111111111)₁
等