PROGRAM factorization of positive integers :
Given un unsigned long integer, this program finds
all prime factor by using traditional division method.
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 100
#define SAVE_FACTOR(fact, exp) { if (exp > 0) \
factors = fact, \
exps = i; \
}
void main(void)
{
unsigned long factors; /* stores factors */
unsigned lon ..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容