Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hi1=100;
- $hi2=100;
- $insert="";
- $list = array();
- $i=2;
- while($i<=$hi1) {
- $y=2;
- while($y<=$hi2) {
- $insert=strval(pow($i,$y));
- if(!in_array($insert,$list)) { $list[] = $insert; }
- $y++;
- }
- $i++;
- }
- echo count($list);
- ?>
Add Comment
Please, Sign In to add comment