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 25, 2023 20:24gchebanovgchebanovScore: 32,510Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:2432,27052,062,97527,384,0001,014,0002,363,392
2Jul 25, 2023 20:2432,36651,888,82427,465,0001,017,0002,367,488
3Jul 25, 2023 20:2432,40553,790,82527,498,0001,018,0002,367,488
4Jul 25, 2023 20:2432,45753,526,50426,522,0002,040,0002,293,760
5Jul 25, 2023 20:2432,47552,731,81226,537,0002,041,0002,367,488
6Jul 25, 2023 20:2432,50850,562,22127,586,0001,021,0002,363,392
7Jul 25, 2023 20:2432,51053,880,10727,588,0001,021,0002,293,760
8Jul 25, 2023 20:2432,52650,437,20826,579,0002,044,0002,293,760
9Jul 25, 2023 20:2432,55554,956,56726,602,0002,046,0002,371,584
10Jul 25, 2023 20:2432,82593,796,16128,885,98302,224,128
11Jul 25, 2023 20:2432,84184,556,71828,899,86902,215,936
12Jul 25, 2023 20:2432,851103,843,77628,908,53102,215,936