Aliquot Sequence Research
2.0
Compute properties of the sum-of-proper-divisors function.
factor
factor.h
Go to the documentation of this file.
1
11
#include <stdint.h>
12
#include <stdlib.h>
13
#include "gmp.h"
14
29
struct
factors
{
30
mpz_t *
p
;
31
uint64_t *
e
;
32
size_t
nfactors
;
33
};
34
35
uint64_t factor_sigma(uint64_t n);
36
uint64_t factor_s(uint64_t n);
37
void
factor(mpz_t,
struct
factors
*);
38
39
void
factor_clear(
struct
factors
*
factors
);
factors::nfactors
size_t nfactors
Definition:
factor.h:32
factors::p
mpz_t * p
Definition:
factor.h:30
factors::e
uint64_t * e
Definition:
factor.h:31
factors
Holds a prime factorization.
Definition:
factor.h:29
Generated by
1.8.17