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 18, 2024 19:57zielajzielajScore: 4,714Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 19:574,66419,900,7221,026,0003,078,0002,322,432
2Dec 18, 2024 19:574,67521,903,7262,057,0002,057,0002,322,432
3Dec 18, 2024 19:574,70518,665,5403,105,0001,035,0002,314,240
4Dec 18, 2024 19:574,71027,981,5193,109,0001,036,0002,473,984
5Dec 18, 2024 19:574,71421,703,3093,111,0001,037,0002,318,336
6Dec 18, 2024 19:574,71624,052,7322,075,0002,075,0002,326,528
7Dec 18, 2024 19:574,76917,836,9953,148,0001,049,0002,539,520
8Dec 18, 2024 19:574,93922,085,2993,260,0001,086,0002,326,528
9Dec 18, 2024 19:576,12321,643,5593,233,0002,155,0002,482,176