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 nth (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.

5th supereven positive integer is 20

Puzzles
Restricted

Stats:

CreatedMay 26, 2017
PublishedMay 26, 2017
Warriors Trained392
Total Skips9
Total Code Submissions907
Total Times Completed78
JavaScript Completions78
Total Stars9
% of votes with a positive feedback rating89% of 37
Total "Very Satisfied" Votes30
Total "Somewhat Satisfied" Votes6
Total "Not Satisfied" Votes1
Total Rank Assessments5
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • myjinxin2015 Avatar
  • Voile Avatar
Ad