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 listJun 21, 2026 22:20A_ShamanA_ShamanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:210118,161,211106,742,0002,277,0002,113,536expected "51213712065958 ", got "51203582234601 "
2Jun 21, 2026 22:210117,535,738106,075,0002,268,0002,113,536expected "50998434717024 ", got "50976833883560 "
3Jun 21, 2026 22:210117,905,273106,420,0002,274,0002,113,536expected "51159349989289 ", got "51146332622946 "