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 17, 2024 21:26zielajzielajScore: 4,886Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 21:264,71521,129,6553,112,0001,037,0002,269,184
2Dec 17, 2024 21:264,75618,419,4553,139,0001,046,0002,535,424
3Dec 17, 2024 21:264,77320,734,4172,100,0002,100,0002,535,424
4Dec 17, 2024 21:264,78216,839,8993,156,0001,052,0002,523,136
5Dec 17, 2024 21:264,88619,951,3553,225,0001,075,0002,531,328
6Dec 17, 2024 21:264,88820,612,1183,226,0001,075,0002,531,328
7Dec 17, 2024 21:264,93921,273,4353,260,0001,086,0002,535,424
8Dec 17, 2024 21:265,00123,693,0213,301,0001,100,0002,519,040
9Dec 17, 2024 21:265,01021,973,2274,409,00002,531,328