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 27, 2021 17:00Yuriy LyfenkoYuriy LyfenkoScore: 36,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 17:0033,24488,256,83029,255,15402,224,128
2Jun 27, 2021 17:0033,25397,850,94229,262,33502,224,128
3Jun 27, 2021 17:0033,30881,747,47229,311,21602,224,128
4Jun 27, 2021 17:0036,55360,550,09430,157,0002,010,0002,269,184
5Jun 27, 2021 17:0036,59458,920,02330,191,0002,012,0002,379,776
6Jun 27, 2021 17:0036,70361,104,05031,290,0001,009,0002,269,184
7Jun 27, 2021 17:0036,70554,365,03332,300,00002,269,184
8Jun 27, 2021 17:0036,70655,017,07431,292,0001,009,0002,269,184
9Jun 27, 2021 17:0036,74958,658,24231,329,0001,010,0002,269,184
10Jun 27, 2021 17:0036,78555,101,97731,360,0001,011,0002,383,872
11Jun 27, 2021 17:0036,82257,383,98031,391,0001,012,0002,269,184
12Jun 27, 2021 17:0036,83460,264,12831,402,0001,012,0002,269,184