;**********************************************************;twin primes by daniel wooden;converted by shadowturtle;**********************************************************Local count = 1Local curnum = 3Local a = 0Local b = 0While count < 101 If IsPrime( curnum ) And IsPrime( curnum+2 ) Then a = curnum b = curnum+2 Print "Twin Prime Set: " + count + " (" + a + "," + b + ")" count = count + 1 End If curnum = curnum + 1 WendWaitKeyEndFunction IsPrime( Num ) Local Prime = True For i = 2 To Num/2 If (Num Mod i) = 0 Then Prime = False End If Next Return Prime End Function