| about | help | code help+videos | done | prefs |
Given a positive integer, return a number with only the prime digits in the same relative order they are found in the parameter. Return -1 if there are no prime digits. primeDigits(1234) → 23 primeDigits(1) → -1 primeDigits(2) → 2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy