Sum of two adjacent numbers are primes: Difference between revisions

m
(→‎Python Functional: Added a further functional variant – a list comprehensions)
Line 1,105:
 
 
or as a list comprehension: (the walrus operator requires Python 3.8+)
 
<syntaxhighlight lang="python">'''Prime sums of two consecutive integers'''
9,655

edits