A vampire number is a composite natural number with an even number of digits, that can be factored into two natural numbers each with half as many digits as the original number and not both with trailing zeroes, where the two factors contain precisely all the digits of the original number, in any order, counting multiplicity. A classic example is: 1260= 21 x 60. This project finds out all the Vampire numbers between two given numbers.
If available in Hex, the package can be installed
by adding proj1
to your list of dependencies in mix.exs
:
def deps do
[
{:proj1, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/proj1.