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:28Yuriy LyfenkoYuriy LyfenkoScore: 36,665Success
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:2831,347103,633,27327,585,02802,228,224
2Jun 27, 2021 22:2831,393100,159,81027,626,06802,224,128
3Jun 27, 2021 22:2831,45598,037,96827,680,31002,220,032
4Jun 27, 2021 22:2831,47090,008,26227,693,25702,220,032
5Jun 27, 2021 22:2831,522103,580,60927,739,01302,207,744
6Jun 27, 2021 22:2831,56892,329,33127,779,86102,220,032
7Jun 27, 2021 22:2836,60156,666,04330,196,0002,013,0002,269,184
8Jun 27, 2021 22:2836,66561,091,72431,257,0001,008,0002,269,184
9Jun 27, 2021 22:2836,70959,378,57331,295,0001,009,0002,371,584
10Jun 27, 2021 22:2836,71663,584,15930,291,0002,019,0002,379,776
11Jun 27, 2021 22:2836,75257,033,72231,332,0001,010,0002,273,280
12Jun 27, 2021 22:2836,75656,686,94731,335,0001,010,0002,269,184
13Jun 27, 2021 22:2836,76460,446,61131,341,0001,011,0002,269,184
14Jun 27, 2021 22:2836,77254,084,57931,348,0001,011,0002,482,176
15Jun 27, 2021 22:2836,93056,172,00132,498,00002,269,184