Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
7
Task/Pernicious-numbers/D/pernicious-numbers-1.d
Normal file
7
Task/Pernicious-numbers/D/pernicious-numbers-1.d
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
void main() {
|
||||
import std.stdio, std.algorithm, std.range, core.bitop;
|
||||
|
||||
immutable pernicious = (in uint n) => (2 ^^ n.popcnt) & 0xA08A28AC;
|
||||
uint.max.iota.filter!pernicious.take(25).writeln;
|
||||
iota(888_888_877, 888_888_889).filter!pernicious.writeln;
|
||||
}
|
||||
1
Task/Pernicious-numbers/D/pernicious-numbers-2.d
Normal file
1
Task/Pernicious-numbers/D/pernicious-numbers-2.d
Normal file
|
|
@ -0,0 +1 @@
|
|||
uint.max.iota.filter!pernicious.walkLength.writeln;
|
||||
Loading…
Add table
Add a link
Reference in a new issue