plafl
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
14 ms·
- 91.▲
- 92.▲
- 93.▲
- 94.▲
- 95.▲
- 96.▲
- 97.▲
- 98.▲
- 99.▲
- 100.▲
Well, in Julia you can use good old goto :) using Combinatorics
# Initialization
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
primes = [3, 5, 7, 11, 13, 17]
winners = []
# Loop though the permutations, collecting only prime pai - 101.▲
- 102.▲
- 103.▲
- 104.▲
- 105.▲
- 106.▲
- 107.▲
- 108.▲
- 109.▲
- 110.▲
- 111.▲
- 112.▲
- 113.▲
- 114.▲
- 115.▲
- 116.▲
- 117.▲
- 118.▲
- 119.▲
- 120.▲
More ›