Computer Science, asked by Izzy19091, 1 month ago

Hi there. I need to write a Python program that determines whether a given integer input is is a twin prime number or not. If the input number is a twin prime, the program must output true. Otherwise, it must output false. Please may someone guide me with how this program should be written in Python? Thank you.

Answers

Answered by charan555
2

Explanation:

def is_prime(n):

for i in range(2, n):

if n % i == 0 and j = i + 2:

return False

return True

im not sure check out if it works

Similar questions