Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. $zzz = $post[posts];
  2. $xxx = $zzz;
  3. $tmp = "";
  4. if ($xxx == 0) {
  5.     $xxx = 1;
  6. }
  7. if ($xxx == 1) {
  8.     $tmp = "1×";
  9. }
  10. for ($iii = 2; $iii < $zzz; $iii++) {
  11.     $counter = 0;
  12.     while ($xxx % $iii == 0) {
  13.         $counter = $counter + 1;
  14.         $xxx = $xxx / $iii;
  15.     }
  16.     if ($counter > 1) {
  17.         $tmp = $tmp . $iii . "<SUP>" . $counter . "</SUP>" . "&times;";
  18.     } else {
  19.         if ($counter == 1) {
  20.             $tmp = $tmp . "$iii&times;";
  21.         }
  22.     }
  23. }
  24. if ($xxx == $iii) {
  25.     $tmp = $tmp . "$xxx&times;";
  26. }
  27. $tmp = substr($tmp, 0, -7);