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 11:39Josu San MartinJosu San MartinError
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 11:42013,802,8125,219,0001,066,0002,113,536expected "51140210308194 ", got "51140210308045 "
2Jun 22, 2026 11:426,88613,629,5146,060,00002,113,536
3Jun 22, 2026 11:426,89313,672,9026,066,00002,113,536
4Jun 22, 2026 11:426,89813,639,6816,071,00002,113,536
5Jun 22, 2026 11:426,92014,320,7886,090,00002,113,536
6Jun 22, 2026 11:427,00413,759,6016,164,00002,113,536
7Jun 22, 2026 11:427,00713,724,1186,167,00002,113,536
8Jun 22, 2026 11:427,01315,333,1156,172,00002,113,536
9Jun 22, 2026 11:427,01414,040,3436,173,00002,113,536