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 listFeb 15, 2026 02:27olliecrowolliecrowScore: 18,175Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 02:2718,10938,621,40814,940,000996,0002,301,952
2Feb 15, 2026 02:2718,17540,427,77214,995,000999,0002,469,888
3Feb 15, 2026 02:2718,18044,815,69714,999,000999,0002,473,984