MCPcopy Create free account
hub / github.com/ActiveState/code / hastwin

Function hastwin

recipes/Python/252125_Quantum_Superposition/recipe-252125.py:168–169  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

166 return isprimenumber(num)
167
168 def hastwin(num):
169 return isprime(num) and isprime(num+Any(+2,-2))
170
171
172 print 'isprime(7)',isprime(7)

Callers 1

recipe-252125.pyFile · 0.85

Calls 2

AnyClass · 0.85
isprimeFunction · 0.70

Tested by

no test coverage detected