Skip to content

Commit 6cf3900

Browse files
committed
Miller-Rabin Primality Test updated to Swift 4
1 parent 0e0ae64 commit 6cf3900

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)