Solution Exercise 756 : algorithm python to find the largest prim number
Exercise 756 Write a Python algorithm as a function that takes an integer n as argument and returns the largest prime integer less than or equal to n. Example for…
Solution Exercise 754: algorithm python to find the smallest prim number
Exercise 754 Write a Python algorithm as a function that takes an integer n as argument and returns the smallest prime integer greater than or equal to n. Example for…
Solution Exercises 66: algorithm python that ask user to type his personnal informations and save it in a txt file
Exercise 66 Write an algorithm in python which asks the user to type his name, his age, his email and creates a file named personal_informations.txt containing all the information entered.…
Solution Exercise 65: algorithm python whiche determines the number of lines of given a file
Exercise 65 Write an algorithm in python in the form of a function which takes as argument the path of an existing file and returns the number of lines of…
Solution Exercise 753: a python algorithm to find list of all tuples verifying a given condition
Exercise 753 Write a python algorithm as a function which takes as argument a positive integer n and returns the list of all the tuples (u, v) of integers such…
Solution Exercise 752: python algorithm to find the greatest divisor of given integer
Exercise 752 Write a program in Python that searches for the greatest divisor strictly less than a given positive integer n. Example for n = 18 the greatest divisor of…
Solution Exercise 751: the smallest divisor of given integer
Exercise 751 Write a program in Python that finds the smallest divisor strictly greater than 1 of a given positive integer n. Example for n = 15 the smallest divisor…