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 listApr 18, 2026 08:37olliecrowolliecrowScore: 45,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 08:3745,43270,007,60537,981,0001,999,0002,338,816
2Apr 18, 2026 08:3745,47268,875,07437,014,0003,001,0002,338,816
3Apr 18, 2026 08:3745,69167,846,95537,193,0003,015,0002,433,024