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 05:41Yuriy LyfenkoYuriy LyfenkoScore: 36,543Success
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:4133,37389,792,84729,368,61902,215,936
2Jun 27, 2021 05:4133,384106,019,59229,378,21102,228,224
3Jun 27, 2021 05:4133,53596,213,44029,510,84302,220,032
4Jun 27, 2021 05:4136,44557,616,18830,068,0002,004,0002,375,680
5Jun 27, 2021 05:4136,51161,156,81930,122,0002,008,0002,269,184
6Jun 27, 2021 05:4136,53859,216,12431,149,0001,004,0002,269,184
7Jun 27, 2021 05:4136,54363,666,71030,149,0002,009,0002,269,184
8Jun 27, 2021 05:4136,59362,065,28330,190,0002,012,0002,379,776
9Jun 27, 2021 05:4136,61358,232,21730,206,0002,013,0002,269,184
10Jun 27, 2021 05:4136,66559,767,41330,249,0002,016,0002,269,184
11Jun 27, 2021 05:4136,67256,706,53731,263,0001,008,0002,383,872
12Jun 27, 2021 05:4138,33160,573,24032,709,0001,022,0002,269,184