Problem 2051. is the number happy?
test is a given integer number is Happy of not?
answer 1 if yes or 0 is no
Solution Stats
Problem Comments
-
1 Comment
Wesley Maa
on 21 Oct 2020
gotta be honest, I did a double take when I saw that numbers could be happy.
Solution Comments
Show commentsProblem Recent Solvers77
Suggested Problems
-
Select every other element of a vector
36038 Solvers
-
How to find the position of an element in a vector without using the find function
2810 Solvers
-
07 - Common functions and indexing 6
465 Solvers
-
Mersenne Primes vs. All Primes
838 Solvers
-
Matlab Basics II - Max & Index of Max
263 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!