Math, asked by ramsinghairy1982, 18 days ago

write all possible numbers that you can make with 235 and find their sum​

Answers

Answered by Itzbigsecret28
0

print "Program to find 3 prime numbers whose sum is 235, and their products."  

def prime(n): # returns True if n is prime, False if not.  

   flag = True  

   for j in range(2,n+1):  

       if (n % j ==0 and j<>n): # n is composite (not prime).  

           flag = False  

           return flag  

       else:  

           if n ==j: # all possible divisors checked. Number,n is prime.  

 

               return flag  

print ""  

count = 0  

primes = []  

for n in range(2,231):  

   if prime(n):  

       primes += [n]  

Similar questions