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 listJul 30, 2022 13:40Yuriy LyfenkoYuriy LyfenkoScore: 38,911Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4030,543107,762,28626,877,40802,215,936
2Jul 30, 2022 13:4030,58287,137,39626,911,90202,220,032
3Jul 30, 2022 13:4030,60290,191,05326,929,90602,215,936
4Jul 30, 2022 13:4038,70859,573,30634,063,00002,375,680
5Jul 30, 2022 13:4038,78159,508,38132,120,0002,007,0002,269,184
6Jul 30, 2022 13:4038,89459,049,37833,221,0001,006,0002,269,184
7Jul 30, 2022 13:4038,91158,497,57333,235,0001,007,0002,273,280
8Jul 30, 2022 13:4038,92858,315,76932,242,0002,015,0002,371,584
9Jul 30, 2022 13:4038,96458,537,61533,280,0001,008,0002,269,184
10Jul 30, 2022 13:4038,96656,529,75033,282,0001,008,0002,379,776
11Jul 30, 2022 13:4039,03961,906,17533,344,0001,010,0002,269,184
12Jul 30, 2022 13:4039,11660,492,51334,422,00002,269,184