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 22:32Yuriy LyfenkoYuriy LyfenkoScore: 36,755Success
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 22:3231,39893,179,10427,630,62202,220,032
2Jun 27, 2021 22:3231,52990,826,59727,745,26002,224,128
3Jun 27, 2021 22:3231,58387,848,38827,792,89202,220,032
4Jun 27, 2021 22:3236,53562,476,92831,147,0001,004,0002,269,184
5Jun 27, 2021 22:3236,64258,264,85830,230,0002,015,0002,269,184
6Jun 27, 2021 22:3236,66353,112,46131,255,0001,008,0002,273,280
7Jun 27, 2021 22:3236,75553,317,71432,344,00002,367,488
8Jun 27, 2021 22:3236,77459,749,91931,350,0001,011,0002,379,776
9Jun 27, 2021 22:3236,79056,586,58331,364,0001,011,0002,269,184
10Jun 27, 2021 22:3236,79558,997,81631,369,0001,011,0002,269,184
11Jun 27, 2021 22:3236,80653,595,41631,377,0001,012,0002,379,776
12Jun 27, 2021 22:3236,86460,396,79332,440,00002,486,272