I m getting wrong answer after submitting any testcase with output that will not pass for the following code.
def answer(val,semiPrimes):
currentIndex = 0
while(currentIndex<len(semiPrimes)):
if((val-semiPrimes[currentIndex]) in semiPrimes):
return "Yes"
else:
currentIndex=currentIndex+1
return "NO"