Skip to content

Commit 23d2c4f

Browse files
authored
Merge pull request kodecocodes#568 from shabirjan/MillerRabinPrimalityTest-Swift4
Miller rabin primality test Swift4
2 parents 94aefdb + 6cf3900 commit 23d2c4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Miller-Rabin Primality Test/MRPrimality.playground/Contents.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//: Playground - noun: a place where people can play
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
38
// Real primes
49
mrPrimalityTest(5)
510
mrPrimalityTest(439)

0 commit comments

Comments
 (0)