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 18, 2021 13:42Yuriy 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 18, 2021 06:1800000Error: expected "51324559376443 ", got "51325945804124 "
2Jun 18, 2021 06:1900000Error: expected "51004288623637 ", got "51007038833505 "
3Jun 18, 2021 06:1900000Error: expected "51004628654589 ", got "51004735139710 "
4Jun 18, 2021 06:1858,079113,767,65951,109,84402,228,224
5Jun 18, 2021 06:1858,324124,425,15151,324,68202,228,224
6Jun 18, 2021 06:1858,347120,043,82551,345,49402,215,936
7Jun 18, 2021 06:2258,653102,838,53651,614,97802,220,032
8Jun 18, 2021 06:2258,672104,091,24351,631,14102,224,128
9Jun 18, 2021 06:2858,705119,963,68851,660,70802,220,032
10Jun 18, 2021 06:2858,732111,045,77251,683,87202,220,032
11Jun 18, 2021 13:4258,818109,036,93651,759,47102,220,032
12Jun 18, 2021 06:2258,829121,813,96651,769,27202,224,128
13Jun 18, 2021 06:2858,880121,738,13151,813,99502,232,320
14Jun 18, 2021 13:4258,903125,913,15851,834,51902,215,936
15Jun 18, 2021 13:4258,989111,903,07751,910,37902,224,128