
ALT Re-ID ===== There's some unrest in the minion ranks: minions with ID numbers like "1", "42", and other "good" numbers have been lording it over the poor minions who are stuck with more boring IDs. To quell the unrest, Commander Lambda has tasked you with reassigning everyone new random IDs based on a Completely Foolproof Scheme. Commander Lambda has concatenated the prime numbers in a single long string: "2357111317192329...". Now every minion must draw a number from a hat. That number is the starting index in that string of primes, and the minion's new ID number will be the next five digits in the string. So if a minion draws "3", their ID number will be "71113". Help the Commander assign these IDs by writing a function solution(n) which takes in the starting index n of Lambda's string of all primes, and returns the next five digits in the string. Commander Lambda has a lot of minions, so the value of n will always be between 0 and 10000. Languages ========= To provide a Java s
![-- Java cases -- Input: Solution.solution(0) Output: 23571 Input: Solution.solution(3) Output: 71113 -- Python cases -- Input: solution.solution(0) Output: 23571 Input: solution.solution(3) Output: 71113 Use verify [file] to test your solution and see how it does. When you are finished editing your code, use submit [file] to submit your answer. If your solution passes the test cases, it will be removed from your home folder.](https://pbs.twimg.com/media/FoO5lyOWIAcisSe.jpg?name=small&format=webp)
ALT -- Java cases -- Input: Solution.solution(0) Output: 23571 Input: Solution.solution(3) Output: 71113 -- Python cases -- Input: solution.solution(0) Output: 23571 Input: solution.solution(3) Output: 71113 Use verify [file] to test your solution and see how it does. When you are finished editing your code, use submit [file] to submit your answer. If your solution passes the test cases, it will be removed from your home folder.
![Output: 23571 Input: Solution.solution(3) Output: 71113 -- Python cases -- Input: solution.solution(0) Output: 23571 Input: solution.solution(3) Output: 71113 python Copy code def solution(n): primes = "235711131719232931" return primes[n:n+5] This function takes the input n and returns the next five characters of the string primes starting from the nth index.](https://pbs.twimg.com/media/FoO5fBRWQAE79tv.jpg?name=small&format=webp)
ALT Output: 23571 Input: Solution.solution(3) Output: 71113 -- Python cases -- Input: solution.solution(0) Output: 23571 Input: solution.solution(3) Output: 71113 python Copy code def solution(n): primes = "235711131719232931" return primes[n:n+5] This function takes the input n and returns the next five characters of the string primes starting from the nth index.






























