Skip to content

Commit

Permalink
Merge pull request TheAlgorithms#218 from TheAlgorithms/prime_fact_cor
Browse files Browse the repository at this point in the history
changed README and corrected comments -- Prime Factoriziation
  • Loading branch information
Christian Bender authored Feb 12, 2019
2 parents a13df71 + c1554af commit a080a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
- TowerOfHanoi
- Greatest Common Divisor
- Sudoku Solver
- prime factorization


## exercism
Expand Down
8 changes: 4 additions & 4 deletions misc/PrimeFactoriziation.c
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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
{
Expand All @@ -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*/
Expand Down

0 comments on commit a080a2a

Please sign in to comment.