Guest User

Untitled

a guest
May 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. $hi1=100;
  4. $hi2=100;
  5. $insert="";
  6. $list = array();
  7. $i=2;
  8. while($i<=$hi1) {
  9. $y=2;
  10. while($y<=$hi2) {
  11. $insert=strval(pow($i,$y));
  12. if(!in_array($insert,$list)) { $list[] = $insert; }
  13. $y++;
  14. }
  15. $i++;
  16. }
  17.  
  18. echo count($list);
  19.  
  20. ?>
Add Comment
Please, Sign In to add comment