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 26, 2024 00:23zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2024 00:1800000Error: expected "51275693805438 ", got "51275693805359 "stderr
2Dec 26, 2024 00:2300000Error: expected "51482937499546 ", got "51482959869167 "stderr
3Dec 26, 2024 00:183,97318,003,4792,331,0001,165,0002,457,600
4Dec 26, 2024 00:183,99425,757,1033,515,00002,453,504
5Dec 26, 2024 00:184,09221,438,8212,401,0001,200,0002,457,600
6Dec 25, 2024 22:304,09418,861,2483,603,00002,457,600
7Dec 26, 2024 00:234,11520,655,3852,414,0001,207,0002,445,312
8Dec 25, 2024 22:304,14521,371,4212,432,0001,216,0002,453,504
9Dec 25, 2024 22:304,40022,197,3771,936,0001,936,0002,453,504
10Dec 26, 2024 00:234,74122,714,5342,086,0002,086,0002,277,376
11Dec 26, 2024 00:235,43824,760,3393,589,0001,196,0002,535,424