Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stdout.writeLine now()
- var toCalculate = [13548153810, 24265915380, 35143815420,
- 41452967940, 52725472560, 63547825480,
- 74936756240]
- var start = getMonoTime()
- # Result initialization
- var futureResults = newSeq[Flowvar[seq[int64]]](toCalculate.len)
- time(overallTime):
- for i in 0..6:
- var number = toCalculate[i]
- results[i] = newSeq[int64]()
- futureResults[i] = spawn calculatePrimesOneThread(number,i)
Add Comment
Please, Sign In to add comment