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:52Josu San MartinJosu San MartinScore: 7,168Success
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:557,08713,618,8646,237,00002,117,632
2Jun 22, 2026 09:557,09713,599,7116,246,00002,117,632
3Jun 22, 2026 09:557,10113,600,8186,249,00002,117,632
4Jun 22, 2026 09:557,12813,892,5066,273,00002,117,632
5Jun 22, 2026 09:557,16813,699,4876,308,00002,117,632
6Jun 22, 2026 09:557,17713,687,3556,316,00002,117,632
7Jun 22, 2026 09:557,17913,657,0565,309,0001,009,0002,117,632
8Jun 22, 2026 09:557,19714,210,7885,317,0001,017,0002,117,632
9Jun 22, 2026 09:557,21013,675,8105,325,0001,020,0002,117,632