Various incomplete solutions
This commit is contained in:
12
ProjectEuler/029/solve.php
Normal file
12
ProjectEuler/029/solve.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
define('A_START',2);
|
||||
define('A_END',100);
|
||||
define('B_START',2);
|
||||
define('B_END',100);
|
||||
|
||||
for($a=A_START;$a<=A_END;$a++) {
|
||||
for($b=B_START;$b<=B_END;$b++) {
|
||||
$array[] = bcpow($a,$b);
|
||||
}
|
||||
}
|
||||
echo count(array_unique($array));
|
Reference in New Issue
Block a user