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 21, 2021 13:13Yuriy LyfenkoYuriy LyfenkoScore: 62,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 13:1347,427116,366,92641,736,14902,224,128
2Jun 21, 2021 13:1347,598110,206,61541,886,56402,220,032
3Jun 21, 2021 13:1347,659109,250,94641,939,77702,224,128
4Jun 21, 2021 13:1362,74884,962,43853,211,0002,007,0002,375,680
5Jun 21, 2021 13:1362,83977,619,43454,293,0001,005,0002,269,184
6Jun 21, 2021 13:1362,97884,182,14553,442,0001,979,0002,269,184
7Jun 21, 2021 13:1362,98388,746,63155,425,00002,375,680
8Jun 21, 2021 13:1362,98479,798,43554,419,0001,007,0002,379,776
9Jun 21, 2021 13:1362,98679,841,09954,421,0001,007,0002,269,184
10Jun 21, 2021 13:1362,98678,830,94354,421,0001,007,0002,269,184
11Jun 21, 2021 13:1363,00877,901,52355,447,00002,371,584
12Jun 21, 2021 13:1363,04876,628,95355,482,00002,269,184