PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Abhishek Shukla   PHP Find Prime Factors   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: test page
Class: PHP Find Prime Factors
Get the prime factors of a number upto 100 billion
Author: By
Last change:
Date: 8 years ago
Size: 750 bytes


Class file image Download
<title>Prime Factors</title>
<body style="background-color:#0CCCCC;">
<h1>Prime Factors</h1>
//Test of prime factorization class by abhishek shukla


$test=new prime_factors;


//test for getting factors as array
echo "<br/>Factors of 1024 =".implode(",",$factors);
echo "<br/>Factors of 13 =".implode(",",$factors);
if(count($factors)==1)echo " (prime).";