Problem 51720. Hoax Numbers
A Hoax Number (OEIS A019506) is defined as a composite number, whose sum of digits is equal to the sum of digits of its distinct prime factors.
Given input, determine if the corresponding number is a Hoax number or not
Example - 
Input : 22
Output : 1
Distinct prime factors of 22 = [2 11], The sum of their digits are 4, i.e 2 + 1 + 1 and sum of digits of 22 is also 4.
Input : 45
Output : 0
Distinct prime factors of 45 = [3 5], The sum of their digits are 8, i.e 3 + 5 but the sum of digits of 45 is not 8,.
Solution Stats
Problem Comments
- 
		1 Comment
		J.R.! Menzinger
    	on 3 Aug 2021
	
	
  	You got a #Like because of:
%STAY HOME, STAY SAFE
%WEAR A MASK
:-)
Solution Comments
Show commentsProblem Recent Solvers16
Suggested Problems
- 
         Back to basics 20 - singleton dimensions 272 Solvers 
- 
         Find the largest value in the 3D matrix 1604 Solvers 
- 
         
         5602 Solvers 
- 
         There are 10 types of people in the world 1221 Solvers 
- 
         
         471 Solvers 
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!