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 listMar 10, 2026 05:40olliecrowolliecrowScore: 18,809Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2026 05:4018,78539,593,07015,498,0001,033,0002,285,568
2Mar 10, 2026 05:4018,80938,871,62615,518,0001,034,0002,285,568
3Mar 10, 2026 05:4018,84535,700,76815,548,0001,036,0002,326,528