fork(1) download
  1. import std.stdio, std.algorithm;
  2. import std.range : iota, take;
  3. import std.bigint;
  4.  
  5.  
  6. void main()
  7. {
  8. iota(BigInt(1), BigInt(10_000_001UL))
  9. .filter!(a => a*(a+16)*(a+48)*(a+64) % 10_000_000 == 0 )
  10. .take(1)
  11. .writeln;
  12. }
Success #stdin #stdout 0.56s 2752KB
stdin
Standard input is empty
stdout
[312436]