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 listJan 22, 2026 03:25zielajzielajScore: 3,608Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 22, 2026 03:253,58024,619,9472,100,0001,050,0002,306,048
2Jan 22, 2026 03:253,60818,707,7001,058,0002,117,0002,301,952
3Jan 22, 2026 03:253,64919,035,3682,141,0001,070,0002,297,856