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 可以看到全部內容