Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 28, 2021 03:41Yuriy LyfenkoYuriy LyfenkoScore: 55,379Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 03:4155,057117,519,28748,450,54802,244,608
2Jun 28, 2021 03:4155,161118,396,27848,541,49302,240,512
3Jun 28, 2021 03:4155,20669,426,27347,569,0001,012,0002,265,088
4Jun 28, 2021 03:4155,23972,184,06548,610,00002,265,088
5Jun 28, 2021 03:4155,24475,246,92248,615,00002,265,088
6Jun 28, 2021 03:4155,36575,394,15347,706,0001,015,0002,392,064
7Jun 28, 2021 03:4155,379108,086,73248,733,64102,273,280
8Jun 28, 2021 03:4155,40278,603,85047,739,0001,015,0002,265,088
9Jun 28, 2021 03:4155,55077,182,98147,887,000997,0002,383,872
10Jun 28, 2021 03:4155,55974,140,73346,897,0001,995,0002,265,088
11Jun 28, 2021 03:4155,65076,462,98646,974,0001,998,0002,265,088
12Jun 28, 2021 03:4155,79875,825,17048,100,0001,002,0002,387,968