Commit 1d77510a authored by Arnaud Lefebvre's avatar Arnaud Lefebvre

Add LICENSE

parent 06c1b4b3
#include<stdio.h>
#include<stdlib.h>
void main(int argc, char *argv[]) {
bool is_div(number, i) {
return number % i == 0;
}
bool is_prime(number) {
for (int i = 2; i < number; i++) {
if (is_div(number, i) == True) return False;
return True;
}
}
int[] prime_divs(number) {
int[] prime_dividers;
for (int i = 2; i < number; i++) {
if (is_prime(i) == True && is_div(number, i) == True) {
break;
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment