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 14:37Yuriy LyfenkoYuriy LyfenkoScore: 36,638Success
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 05:4933,21087,719,27629,224,86302,224,128
2Jun 27, 2021 14:3733,21592,749,58029,229,61402,224,128
3Jun 27, 2021 05:4933,22793,308,80529,240,15702,207,744
4Jun 27, 2021 14:3733,23886,706,02329,249,36902,224,128
5Jun 27, 2021 05:4933,31488,777,71429,316,49402,215,936
6Jun 27, 2021 14:3733,32386,210,85629,324,05802,224,128
7Jun 27, 2021 14:3736,44959,812,10530,071,0002,004,0002,269,184
8Jun 27, 2021 05:4936,54760,501,23831,156,0001,005,0002,383,872
9Jun 27, 2021 05:4936,55964,171,94930,162,0002,010,0002,269,184
10Jun 27, 2021 05:4936,57758,759,48331,183,0001,005,0002,383,872
11Jun 27, 2021 14:3736,57862,820,96730,178,0002,011,0002,269,184
12Jun 27, 2021 05:4936,62358,941,82731,221,0001,007,0002,371,584
13Jun 27, 2021 14:3736,63861,803,42130,226,0002,015,0002,371,584
14Jun 27, 2021 05:4936,64357,891,01030,231,0002,015,0002,265,088
15Jun 27, 2021 05:4936,70856,017,60532,303,00002,269,184
16Jun 27, 2021 05:4936,71160,572,16831,297,0001,009,0002,273,280
17Jun 27, 2021 14:3736,75255,433,27432,342,00002,379,776
18Jun 27, 2021 14:3736,79855,944,39731,371,0001,011,0002,371,584
19Jun 27, 2021 14:3736,82555,411,81331,394,0001,012,0002,371,584
20Jun 27, 2021 05:4936,83156,084,09732,411,00002,269,184
21Jun 27, 2021 14:3736,84357,591,08331,409,0001,013,0002,269,184
22Jun 27, 2021 14:3736,88359,071,88131,443,0001,014,0002,269,184
23Jun 27, 2021 14:3736,98356,802,21132,545,00002,269,184
24Jun 27, 2021 05:4937,01554,440,62131,556,0001,017,0002,269,184