6 kyu
One Line Task: Super Even
Description:
Task
Let a number be supereven
if all of its digits are even(include 0
, here we define 0
as even digit).
Here are the first few supereven
positive integers:
2, 4, 6, 8, 20, 22, 24, 26, 28, 40, ...
Given an integer n
, find the n
th (1-based) supereven positive integer
.
Code Limit
Less than 30
characters.
Example
For n = 1
, the output should be 2
.
1st supereven positive integer is 2
For n = 5
, the output should be 20
.
5
th supereven positive integer is 20
Puzzles
Restricted
Similar Kata:
Stats:
Created | May 26, 2017 |
Published | May 26, 2017 |
Warriors Trained | 392 |
Total Skips | 9 |
Total Code Submissions | 907 |
Total Times Completed | 78 |
JavaScript Completions | 78 |
Total Stars | 9 |
% of votes with a positive feedback rating | 89% of 37 |
Total "Very Satisfied" Votes | 30 |
Total "Somewhat Satisfied" Votes | 6 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 5 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |