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 listJul 31, 2026 21:01Warren FuWarren FuError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 21:0406,543,325,3266,531,002,0002,001,0002,117,632expected "51555795872556 ", got "1073701231097095 "
2Jul 31, 2026 21:0406,487,967,3306,474,996,0002,001,0002,117,632expected "51060062751807 ", got "1074355205777883 "
3Jul 31, 2026 21:0406,476,853,2226,463,848,0002,001,0002,117,632expected "50880472538232 ", got "1073291168883435 "