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 listOct 6, 2023 13:30apuxbtapuxbtScore: 25,976Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 13:3025,95094,051,38422,835,79002,289,664
2Oct 6, 2023 13:3025,97689,005,01322,858,84702,269,184
3Oct 6, 2023 13:3026,00098,079,33922,879,93702,269,184