Various incomplete solutions
This commit is contained in:
		
							
								
								
									
										6
									
								
								ProjectEuler/032/solve.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								ProjectEuler/032/solve.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
<?php
 | 
			
		||||
function pandigital($number) {
 | 
			
		||||
		$array = count_chars($number,1);
 | 
			
		||||
		ksort($array);
 | 
			
		||||
		if($array == array(49=>1,50=>1,51=>1,52=>1,53=>1,54=>1,55=>1,56=>1,57=>1)) { return true;} else { return false; }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user