Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created August 30, 2013 16:06
Show Gist options
  • Save randyzwitch/6391427 to your computer and use it in GitHub Desktop.
Save randyzwitch/6391427 to your computer and use it in GitHub Desktop.
Julia smallest divisible number
function smallestdivisall(n::Int64)
for i = 1:factorial(n)
for j = 1:n
if i % j !=0
break
elseif j == n
return i
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment