Skip to content

Flask Backend to Check Large Numbers

Compare
Choose a tag to compare
@Jayesh-JainX Jayesh-JainX released this 25 Oct 08:31
· 8 commits to main since this release
c823e7e

Button Click Notification

In this release, we've added a Flask backend that checks whether a given number is prime, even when dealing with extremely large numbers. This backend is designed to handle requests from a web interface where users input numbers for primality testing. It utilizes probabilistic primality testing with the Miller-Rabin algorithm to efficiently check the primality of large numbers. The backend provides a simple API endpoint for this purpose and returns a response indicating whether the number is probably prime or not prime. The backend can be integrated with a frontend to provide a user-friendly prime number checking service.