Question
If in the number '5736358324', 2 is added to all the odd
digits and 2 is subtracted from all the even digits, then what is the sum of all the prime numbered digits in the new number thus formed?ÂSolution
5Â Â Â Â Â Â Â Â Â 7Â Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â 8Â Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 4 7Â Â Â Â Â Â Â Â Â 9Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â 7Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â 0Â Â Â Â Â Â Â Â Â 2 Sum = (7 + 5 + 5 + 7 + 5 +2) = 31.
Which command is used to display the current working directory in a Unix-like operating system?
Which symbol is used for logical AND in shell scripting?
Which character is used to denote a single-line comment in a shell script?
OLAP is primarily used for:
In bash, what does trap 'echo Exit' EXIT do?
Which command safely iterates over filenames that may contain spaces and newlines in a shell script?
In shell scripting, which operator is used for string comparison?
Which symbol is used to make a script executable in Linux?
Which symbol is used for variable substitution in shell scripting?
If a program needs to read data from a file, which system call would it typically use?