A number is considered as a lucky number by Babu, if sum of digits of
a number is prime. Write a program to display whether a

A number is considered as a lucky number by Babu, if sum of digits of
a number is prime. Write a program to display whether a number is
lucky or not
Input format
The first line of input consists of a number.
Output format
Display whether the given number is a lucky number or not along with
the given number.
Refer sample output.
RE
Sample testcases
Input 1
Output 1
122
122 is lucky number
Input 2
Output 2
123 is not lucky number​

About the author
Kylie

2 thoughts on “A number is considered as a lucky number by Babu, if sum of digits of<br />a number is prime. Write a program to display whether a”

Leave a Comment