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 21, 2026 23:15Josu San MartinJosu San MartinScore: 10,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 23:1810,02917,798,7347,808,0001,018,0002,117,632
2Jun 21, 2026 23:1810,03217,766,0767,815,0001,014,0002,117,632
3Jun 21, 2026 23:1810,04517,747,1557,835,0001,005,0002,117,632
4Jun 21, 2026 23:1810,04617,805,0837,814,0001,027,0002,117,632
5Jun 21, 2026 23:1810,07617,733,5407,842,0001,025,0002,113,536
6Jun 21, 2026 23:1810,08917,834,7867,852,0001,027,0002,117,632
7Jun 21, 2026 23:1810,09617,775,7077,878,0001,007,0002,113,536
8Jun 21, 2026 23:1810,15317,730,7197,847,0001,088,0002,117,632
9Jun 21, 2026 23:1810,21017,808,3787,894,0001,091,0002,113,536