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, 2024 13:32matsuoka-601matsuoka-601Score: 17,228Success
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, 2024 13:3217,03530,194,99413,992,000999,0002,281,472
2Jul 30, 2024 13:3217,12839,814,57713,064,0002,009,0002,506,752
3Jul 30, 2024 13:3217,13934,813,10514,077,0001,005,0002,396,160
4Jul 30, 2024 13:3217,15533,522,84813,084,0002,012,0002,404,352
5Jul 30, 2024 13:3217,15636,380,62612,078,0003,019,0002,543,616
6Jul 30, 2024 13:3217,18528,569,17112,099,0003,024,0002,420,736
7Jul 30, 2024 13:3217,22829,524,03414,151,0001,010,0002,281,472
8Jul 30, 2024 13:3217,26535,932,21812,155,0003,038,0002,281,472
9Jul 30, 2024 13:3217,28574,358,94015,210,69302,224,128
10Jul 30, 2024 13:3217,29133,065,25412,173,0003,043,0002,473,984
11Jul 30, 2024 13:3217,34893,473,80515,266,60402,379,776
12Jul 30, 2024 13:3217,39271,459,24815,304,71702,224,128