mirror of https://github.com/TheAlgorithms/C
Merge pull request #218 from TheAlgorithms/prime_fact_cor
changed README and corrected comments -- Prime Factoriziation
This commit is contained in:
commit
a080a2aa64
|
@ -69,6 +69,7 @@
|
|||
- TowerOfHanoi
|
||||
- Greatest Common Divisor
|
||||
- Sudoku Solver
|
||||
- prime factorization
|
||||
|
||||
|
||||
## exercism
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
AUTHOR: Christian Bender
|
||||
DATE: 12.02.2019
|
||||
DESCRIPTION: This program calculates the prim factoriziation of a positive integer > 1
|
||||
DESCRIPTION: This program calculates the prime factoriziation of a positive integer > 1
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
/*
|
||||
this type is for the representation of the prim factoriziation
|
||||
- its series/range of prim factors
|
||||
- its length : numbers of prim factors
|
||||
- its series/range of prime factors
|
||||
- its length : numbers of prime factors
|
||||
*/
|
||||
typedef struct data
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ typedef struct data
|
|||
} range;
|
||||
typedef range* Range;
|
||||
|
||||
/* int_fac : calculates the prim factoriziation of positive integers */
|
||||
/* int_fac : calculates the prime factoriziation of positive integers */
|
||||
Range int_fact(int);
|
||||
|
||||
/* print_arr : prints the integer (heap) array*/
|
||||
|
|
Loading…
Reference in New Issue