0

lambdas

can someone help me to put this code into a lambda function. def solution(i): a=[2] if i==0 or i==1 : g=5 else: g=i+3 for l in range(g): n = a[-1] n=next_prime(n) a.append(n) b = "".join(map(str, a)) return b[i:i+5]

5th Sep 2021, 9:02 AM
ismail teke
ismail teke - avatar
1 Antwort
+ 3
Why do you even need that?
5th Sep 2021, 9:44 AM
The future is now thanks to science
The future is now thanks to science - avatar