adventofcode/2015/04/coins2.pl
Yanick Champoux f44cb5def9 day4
2017-12-03 20:40:18 -05:00

14 lines
126 B
Perl

use 5.20.0;
my $s = shift;
use Digest::MD5 qw/ md5_hex /;
my $i = 0;
$i++ until md5_hex( $s . $i ) =~ /^0{6}/;
say $i;