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 listFeb 4, 2026 16:33vahookvahookScore: 3,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 16:233,58121,423,0481,050,0002,101,0002,490,368
2Feb 4, 2026 16:233,58621,017,8811,052,0002,104,0002,494,464
3Feb 4, 2026 16:233,58615,904,6421,052,0002,104,0002,531,328
4Feb 4, 2026 16:233,58821,306,8501,052,0002,105,0002,502,656
5Feb 4, 2026 16:233,59021,892,3141,053,0002,106,0002,502,656
6Feb 4, 2026 16:233,59123,828,8811,053,0002,107,0002,498,560
7Feb 4, 2026 16:233,59120,170,7381,053,0002,107,0002,277,376
8Feb 4, 2026 16:233,63228,878,5011,065,0002,131,0002,490,368
9Feb 4, 2026 16:333,64123,921,9031,068,0002,136,0002,494,464
10Feb 4, 2026 16:333,66821,077,9891,076,0002,152,0002,494,464
11Feb 4, 2026 16:233,67217,497,3341,077,0002,154,0002,494,464
12Feb 4, 2026 16:333,68517,182,3941,081,0002,162,0002,486,272