How can we program to find 1st 100 vampire number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can we program to find 1st 100 vampire number?

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. The first vampire number is 1260 = 21 × 60.

5th Jul 2019, 3:07 PM
Pratibha Nautiyal
1 Answer
0
All it takes is a google search :) https://rosettacode.org/wiki/Vampire_number
8th Jul 2019, 3:41 AM
Chris Coder
Chris Coder - avatar