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 listDec 20, 2024 20:08zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 20:0700000Error: expected "51775184125689 ", got "51775184125616 "stderr
2Dec 20, 2024 20:0800000Error: expected "51194804599198 ", got "51195803088215 "stderr
3Dec 20, 2024 20:084,11724,367,7863,623,00002,273,280
4Dec 20, 2024 20:084,12325,234,0562,419,0001,209,0002,510,848
5Dec 20, 2024 20:084,12622,273,7682,421,0001,210,0002,510,848
6Dec 20, 2024 20:084,12619,077,6752,421,0001,210,0002,510,848
7Dec 20, 2024 20:084,17722,905,0142,451,0001,225,0002,523,136
8Dec 20, 2024 20:084,20324,386,8502,466,0001,233,0002,519,040
9Dec 20, 2024 20:084,27219,802,6842,506,0001,253,0002,519,040
10Dec 20, 2024 20:084,30520,358,0333,788,00002,519,040
11Dec 20, 2024 20:085,64921,252,5142,983,0001,988,0002,535,424