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 23, 2026 01:31Josu 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 23, 2026 01:36012,241,8144,691,00002,113,536expected "51078377122938 ", got "51078377122789 "
2Jun 23, 2026 01:365,21412,134,2464,589,00002,113,536
3Jun 23, 2026 01:365,22212,074,9744,596,00002,113,536
4Jun 23, 2026 01:365,24612,115,0414,617,00002,113,536
5Jun 23, 2026 01:365,25414,130,3894,624,00002,113,536
6Jun 23, 2026 01:365,30212,080,8074,666,00002,113,536
7Jun 23, 2026 01:365,31012,091,1684,673,00002,113,536
8Jun 23, 2026 01:365,32912,182,1844,690,00002,113,536
9Jun 23, 2026 01:365,33112,090,5564,692,00002,113,536