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 15, 2024 19:47zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 19:4500000Error: expected "51379123068360 ", got "51379123068361 "stderr
2Dec 15, 2024 19:465,78020,502,5834,069,0001,017,0002,506,752
3Dec 15, 2024 19:475,78020,853,5434,069,0001,017,0002,510,848
4Dec 15, 2024 19:465,78120,569,2373,052,0002,035,0002,510,848
5Dec 15, 2024 19:475,78221,321,4044,071,0001,017,0002,510,848
6Dec 15, 2024 19:475,92422,498,9254,171,0001,042,0002,531,328
7Dec 15, 2024 19:465,95526,257,7743,144,0002,096,0002,277,376