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 18:56zielajzielajScore: 5,865Success
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 18:565,86520,858,6134,129,0001,032,0002,531,328
2Dec 15, 2024 18:565,86525,015,3224,129,0001,032,0002,351,104
3Dec 15, 2024 18:565,89324,460,2783,112,0002,074,0002,531,328