Logo
Get factoring dividends
Online Now: 4
Snippet Code
Get all possible combinations of a number, multiplying all its prime factors
public function getAllDividends($number){
     for($i=2; $i<$number; $i++){
         if(($number % $i == 0)){
             $num[] = $number / $i;    
         } 
     }
     return $num;
}
 
Snippet Comments

Add Your Comment

No Comments Yet.

Add Your Comment

 
Snippet Tools
Rate this Snippet:

Rate the difficulty level:

Request Snippet Update


Suggested Difficulty Level: Beginner
Current Score: 5

Total Views: 480

Other top snippets by aaronroman:

1. Objetcts array order by object attribute

Search
Search for:







User Panel

User name:

Password:

Register And Post Your Own Snippets

New Snippets

1.  Automatic Color Correction (4.50 of 2)

2.  Image to ASCII (4.33 of 3)

3.  String Output Formatter (1.00 of 1)

4.  IP Blacklist Check (5.00 of 11)

5.  Send SMS with (3.60 of 5)

6.  Cache PHP Generated (0.00 of 0)

7.  Database Connection (4.00 of 2)

8.  Email Validator (3.25 of 4)

9.  Shorten text and (3.67 of 3)

10.  file-based simple guest (2.00 of 1)

11.  adding an entry (5.00 of 1)

12.  integer to currency (1.33 of 3)

13.  Aggregate IP addresses (0.00 of 0)

14.  file handling (0.00 of 0)

15.  testing system with (0.00 of 0)

16.  Make an php (1.00 of 1)

17.  allow download in (5.00 of 1)

18.  redirect in 3 (3.00 of 2)

19.  live clock with (1.00 of 1)

20.  visit counter (4.00 of 3)

21.  contact form with (3.33 of 3)

22.  show a specific (1.00 of 1)

23.  The & sign (5.00 of 1)

24.  static variable in (1.00 of 1)

25.  multiplication table with (1.00 of 1)

Home | Forum | Free PHP Web Hosting | Contact | Terms & Conditions |  
Donate
PHPSnips.com - ©2012 Amethyst Creative