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 listJul 30, 2022 13:45Yuriy LyfenkoYuriy LyfenkoScore: 38,938Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4530,44899,261,58726,794,31402,224,128
2Jul 30, 2022 13:4530,629115,252,16826,953,46502,220,032
3Jul 30, 2022 13:4530,64496,692,62426,966,37202,224,128
4Jul 30, 2022 13:4538,85661,679,86432,182,0002,011,0002,269,184
5Jul 30, 2022 13:4538,86161,813,52732,187,0002,011,0002,269,184
6Jul 30, 2022 13:4538,88667,254,66533,214,0001,006,0002,379,776
7Jul 30, 2022 13:4538,93855,740,24433,258,0001,007,0002,269,184
8Jul 30, 2022 13:4538,94760,732,08333,265,0001,008,0002,269,184
9Jul 30, 2022 13:4538,98956,374,68533,301,0001,009,0002,269,184
10Jul 30, 2022 13:4539,01559,242,13633,324,0001,009,0002,375,680
11Jul 30, 2022 13:4539,02763,250,63133,334,0001,010,0002,269,184
12Jul 30, 2022 13:4539,04761,080,09932,340,0002,021,0002,269,184