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 listApr 26, 2026 20:14Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:14050,285,00635,459,0001,969,0002,428,928expected "51403245255050 ", got "51403410142323 "
2Apr 26, 2026 20:1441,92851,780,08834,903,0001,994,0002,428,928
3Apr 26, 2026 20:1442,11549,054,33735,059,0002,003,0002,437,120