From e3b6a1f23515a069288c0ab97a71401c88e5e624 Mon Sep 17 00:00:00 2001 From: Ankush Date: Thu, 10 Oct 2024 02:03:46 +0530 Subject: [PATCH] frontend bugs fixed --- base/templates/base/index.html | 2 +- file.txt | 4 +--- test.py | 22 +++++++++++++++++++--- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/base/templates/base/index.html b/base/templates/base/index.html index 759d0d4..bf8df93 100644 --- a/base/templates/base/index.html +++ b/base/templates/base/index.html @@ -13,7 +13,7 @@ margin: 0; font-family: Arial, sans-serif; font-size: 16px; - line-height: 1.25; + line-height: 1.15; } header { diff --git a/file.txt b/file.txt index 4539bbf..5cdcb7d 100644 --- a/file.txt +++ b/file.txt @@ -1,3 +1 @@ -0 -1 -2 +6 is not a prime number. diff --git a/test.py b/test.py index 4a30528..343f2f1 100644 --- a/test.py +++ b/test.py @@ -1,4 +1,4 @@ -d = [''] +d = ['13'] def input(): try: out = d[0] @@ -8,5 +8,21 @@ def input(): return out -for i in range(3): - print(i) \ No newline at end of file +# Check if number is Prime or Not +# Take input from the user +n = int(input()) + +# Check if the number is prime +prime = True +if n <= 1: + prime = False +else: + for i in range(2, int(n**0.5) + 1): + if n % i == 0: + prime = False + break + +if (prime): + print(f"{n} is a prime number.") +else: + print(f"{n} is not a prime number.") \ No newline at end of file