We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Identify Smith Numbers
Identify Smith Numbers
Sort by
recency
|
131 Discussions
|
Please Login in order to post a comment
import math
def check_condition(n): # Function to compute the sum of digits of a number def sum_of_digits(num): return sum(int(digit) for digit in str(num))
int parse_int(char* str) { char* endptr; int value = strtol(str, &endptr, 10);
} int sum_of_digits(int num) {
} int sum_of_prime_factors_digits(int num) {
} int solve(int n) {
}
My python solution (I'm new to python!):