Changed makefile to produce executable with .run exetension.
Added .run extension to the .gitignore.
Created test code to test is compiled and executed.
Changed the structure again of the problem.
Using a main and a seperate file to implement the function
to have more reusability later.
included .swp files in git ignore.
Set C-standard to C99
Working solution, confirmed at project euler.