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:13olliecrowolliecrowScore: 2,876,319Success
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:132,871,9342,574,239,5942,442,360,00084,942,000140,713,984
2Feb 15, 2026 02:132,876,3192,577,644,5442,431,234,00099,927,000140,570,624
3Feb 15, 2026 02:132,880,5032,577,273,4162,433,929,000100,914,000140,648,448