이미 게시 된 것에 대한 대체 10 바이트 젤리 제출.
_ÆRBS€’×ḂẠ
Polignac 번호 로 1 을 반환 하고 그렇지 않으면 0 을 반환하는 모나드 링크 .
온라인으로 사용해보십시오! 또는 1000 미만의 사람들을 참조하십시오.
방법?
_ÆRBS€’×ḂẠ - Link: number, n e.g. 1 3 5 6 127
ÆR - prime range [] [2] [2,3,5] [2,3,5] [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127]
_ - subtract from n [] [1] [3,2,0] [4,3,1] [125,124,122,120,116,114,110,108,104,98,96,90,86,84,80,74,68,66,60,56,54,48,44,38,30,26,24,20,18,14,0]
B - convert to binary [] [[1]] [[1,1],[1,0],[0]] [[1,0,0],[1,1],[1] [[1,1,1,1,1,0,1],[1,1,1,1,1,0,0],[1,1,1,1,0,1,0],[1,1,1,1,0,0,0],[1,1,1,0,1,0,0],[1,1,1,0,0,1,0],[1,1,0,1,1,1,0],[1,1,0,1,1,0,0],[1,1,0,1,0,0,0],[1,1,0,0,0,1,0],[1,1,0,0,0,0,0],[1,0,1,1,0,1,0],[1,0,1,0,1,1,0],[1,0,1,0,1,0,0],[1,0,1,0,0,0,0],[1,0,0,1,0,1,0],[1,0,0,0,1,0,0],[1,0,0,0,0,1,0],[1,1,1,1,0,0],[1,1,1,0,0,0],[1,1,0,1,1,0],[1,1,0,0,0,0],[1,0,1,1,0,0],[1,0,0,1,1,0],[1,1,1,1,0],[1,1,0,1,0],[1,1,0,0,0],[1,0,1,0,0],[1,0,0,1,0],[1,1,1,0],0]
S€ - sum €ach [] [1] [2,1,0] [1,2,1] [6,5,5,4,4,4,5,4,3,3,2,4,4,3,2,3,2,2,4,3,4,2,3,3,4,3,2,2,2,3,0]
’ - decrement [] [0] [1,0,-1] [0,1,0] [5,4,4,3,3,3,4,3,2,2,1,3,3,2,1,2,1,1,3,2,3,1,2,2,3,2,1,1,1,2,-1]
Ḃ - n mod 2 1 1 1 0 1
× - multiply [] [0] [1,0,-1] [0,0,0] [5,4,4,3,3,3,4,3,2,2,1,3,3,2,1,2,1,1,3,2,3,1,2,2,3,2,1,1,1,2,-1]
Ạ - all truthy? 1 0 0 0 1