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 20, 2024 05:58zielajzielajScore: 4,516Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 05:584,51129,804,5101,985,0001,985,0002,334,720
2Dec 20, 2024 05:584,51617,370,8861,987,0001,987,0002,437,120
3Dec 20, 2024 05:584,57320,881,1002,012,0002,012,0002,338,816