2013-04-10 21:29:02 -07:00
|
|
|
void main() {
|
2013-10-27 22:24:23 +00:00
|
|
|
import std.stdio, std.bigint, std.range, std.algorithm;
|
|
|
|
|
|
|
|
|
|
auto squares = 0.sequence!"n".map!(i => i.BigInt ^^ 2);
|
|
|
|
|
auto cubes = 0.sequence!"n".map!(i => i.BigInt ^^ 3);
|
2013-04-10 21:29:02 -07:00
|
|
|
|
2013-10-27 22:24:23 +00:00
|
|
|
squares.setDifference(cubes).drop(20).take(10).writeln;
|
2013-04-10 21:29:02 -07:00
|
|
|
}
|