Add more solutions in python

Added python solutions for problem 56, 57, 58, 59 and 60
This commit is contained in:
2019-09-27 15:16:09 +02:00
parent 9e8d530d9e
commit ed7031df4d
12 changed files with 358 additions and 5 deletions

View File

@ -122,6 +122,7 @@ int main(int argc, char **argv)
}
found = 1;
printf("%c%c%c\n", c1, c2, c3);
}
}
}

View File

@ -29,7 +29,7 @@ int main(int argc, char **argv)
/* Straightforward brute force approach.*/
for(p1 = 3; p1 < N && !found; p1 += 2)
{
/* If p1 is not prime, go to next number.*/
/* If p1 is not prime, go to the next number.*/
if(!primes[p1])
{
continue;