#! /usr/bin/julia

# Rosetta Code, Non-decimal radices/Output

hi = 50
println("Primes \u2264 ", hi, " written in common bases.")
println("     bin   oct  dec  hex")
for i in primes(hi)
    println(@sprintf("%8s %4s   %2s   %2s", bin(i), oct(i), dec(i), hex(i)))
end
