Tanj
• Member for 4 years, 6 months
• Last seen more than a month ago

Julia, 22 bytes x->2*x<4^count_ones(x)

Julia 1.0, 34 bytes (a,b)->(d=(a*a-4b)^.5;[a+d,a-d]/2) Try it online!

Julia, 91 bytes x->(t=[];for i in x z=findfirst(x->x==0,i%(2:maximum(x)));z∈t?1:push!(t,z) end;length(t))

Julia 0.6, 20 bytes x->∉(0,(x-~x)%3:x)

Julia 1.0, 17 bytes Save 6 bytes thanks to the awesome comments of MarcMush! x->x+sign(x%=1)-x Try it online! An alternative with 22 bytes x->sign(x)ceil(abs(x)) Try it online!

Julia, 26 bytes g(s)=s[s.=="L"],s[s.=="D"]

Julia 0.6, 61 bytes return 1 if x is a super-prime, 0 otherwise. without using an isprime-kind function. x->a=[0,1];for i=3:x push!(a,0∉i%(2:i-1))end;a[sum(a)]&a[x]

Julia, 44 bytes (s,x)->for i in split(s,"") print(i^abs(x))end

Julia, 71 64 bytes thanks to sundar and his find(A.==x)[] instead of findfirst(A,x)). . (A,x,y)->findnext(A,y,find(A.==x)[]),findprev(A,x,findlast(A,y))

Julia, 101 bytes g(h,t)=h>t?string("A","a"^(h-t),"h!"):string("B","o"^round(Int,(t-h)*2/3),"h","o"^round(Int,(t-h)/3)) Arguments to the function are taken in the order length of Hair, height of ...

Julia, 59 bytes x->((0∉x%(2:x-1))&(length(find(x->x==0,(x+2)%(2:x)))<=2))