This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <inttypes.h> | |
int64_t divide_into_largest_factor(int input) { | |
int64_t divisor = 2; | |
if (2 < input) { | |
while (divisor < (sqrt(input)+1)) { | |
if (input % divisor == 0) { |