有18个素数与不同的素数(A124674)。即,它们是:
您的任务是输出此序列。
发布于 2023-02-26 10:49:33
lambda x:ord('%5Iāȋवુಹᑵᒙ᱕ᵣ'[x])
在网上试试!
发布于 2023-02-25 21:43:06
Select[FromDigits/@Join@@Permutations/@Subsets@{2,3,5,7},PrimeQ]
发布于 2023-02-25 23:08:45
Èì_â fjöX©j}jU
试试看
输出序列中的第一个n条目。
解释:
Èì_â fjöX©j}jU # input stored in U È }jU # get first U numbers where the following is true: ì_ # convert to digits â # keep unique digits fj # remove non-prime digits öX # does this result in the same number? ©j # and check the original is prime
https://codegolf.stackexchange.com/questions/258299
相似问题