Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
49
Task/Population-count/Symsyn/population-count.symsyn
Normal file
49
Task/Population-count/Symsyn/population-count.symsyn
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
| Pop Count 3^i
|
||||
|
||||
i
|
||||
if i < 30
|
||||
(3^i) x
|
||||
popcount x 63 x
|
||||
~ x $r
|
||||
+ $r $s
|
||||
+ ' ' $s
|
||||
+ i
|
||||
goif
|
||||
endif
|
||||
"' Pop Count 3^i : ' $s " []
|
||||
|
||||
| Evil Numbers
|
||||
|
||||
i
|
||||
cnt
|
||||
if cnt < 30
|
||||
popcount i 7 x
|
||||
x:0:1 y
|
||||
if y <> 1
|
||||
+ cnt
|
||||
~ i $r
|
||||
+ $r $e
|
||||
+ ' ' $e
|
||||
endif
|
||||
+ i
|
||||
goif
|
||||
endif
|
||||
"' Evil Numbers : ' $e " []
|
||||
|
||||
| Odious Numbers
|
||||
|
||||
i
|
||||
cnt
|
||||
if cnt < 30
|
||||
popcount i 7 x
|
||||
x:0:1 y
|
||||
if y = 1
|
||||
+ cnt
|
||||
~ i $r
|
||||
+ $r $o
|
||||
+ ' ' $o
|
||||
endif
|
||||
+ i
|
||||
goif
|
||||
endif
|
||||
"' Odious Numbers : ' $o " []
|
||||
Loading…
Add table
Add a link
Reference in a new issue