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 16:56Yuriy LyfenkoYuriy LyfenkoError
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 16:5500000Error: expected "51551889437003 ", got "51551889436890 "
2Jun 27, 2021 16:5633,233101,987,66129,244,70302,224,128
3Jun 27, 2021 16:5633,23795,956,47129,248,65202,228,224
4Jun 27, 2021 16:5633,24196,596,78629,251,96102,220,032
5Jun 27, 2021 16:5636,53058,494,95130,137,0002,009,0002,375,680
6Jun 27, 2021 16:5636,59460,993,58131,197,0001,006,0002,269,184
7Jun 27, 2021 16:5636,63961,415,46831,235,0001,007,0002,269,184
8Jun 27, 2021 16:5636,69550,433,77731,283,0001,009,0002,506,752
9Jun 27, 2021 16:5636,70559,056,42032,300,00002,269,184
10Jun 27, 2021 16:5636,72255,196,38332,315,00002,379,776
11Jun 27, 2021 16:5636,74861,920,50032,338,00002,269,184
12Jun 27, 2021 16:5636,75059,096,92631,330,0001,010,0002,375,680
13Jun 27, 2021 16:5636,77359,069,14531,349,0001,011,0002,269,184