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 22, 2026 09:47Josu San MartinJosu San MartinScore: 7,214Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 09:497,10713,601,3336,255,00002,117,632
2Jun 22, 2026 09:497,16313,708,4416,304,00002,117,632
3Jun 22, 2026 09:497,19813,901,8475,308,0001,027,0002,117,632
4Jun 22, 2026 09:497,21213,699,6425,320,0001,027,0002,117,632
5Jun 22, 2026 09:497,21413,879,5125,322,0001,027,0002,117,632
6Jun 22, 2026 09:497,22013,893,7975,322,0001,032,0002,117,632
7Jun 22, 2026 09:497,22614,243,4295,318,0001,041,0002,117,632
8Jun 22, 2026 09:497,23613,760,9856,368,00002,117,632
9Jun 22, 2026 09:497,24713,823,3965,332,0001,046,0002,117,632