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 10, 2026 14:12zielajzielajScore: 3,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 10, 2026 14:123,31716,110,9622,919,00002,400,256
2Feb 10, 2026 14:113,33122,021,0251,954,000977,0002,404,352
3Feb 10, 2026 14:123,38520,324,2331,986,000993,0002,408,448
4Feb 10, 2026 14:113,41717,814,2332,005,0001,002,0002,408,448
5Feb 10, 2026 14:133,43423,614,8943,022,00002,404,352
6Feb 10, 2026 14:123,43621,306,9312,016,0001,008,0002,277,376
7Feb 10, 2026 14:123,44122,399,0582,019,0001,009,0002,404,352
8Feb 10, 2026 14:133,44119,067,8772,019,0001,009,0002,392,064
9Feb 10, 2026 14:133,46121,510,8732,031,0001,015,0002,404,352
10Feb 10, 2026 14:123,46418,517,8742,032,0001,016,0002,408,448
11Feb 10, 2026 14:113,47022,192,5562,036,0001,018,0002,535,424
12Feb 10, 2026 14:123,47420,884,2062,038,0001,019,0002,400,256
13Feb 10, 2026 14:123,54216,757,3772,078,0001,039,0002,404,352
14Feb 10, 2026 14:124,14519,473,1773,648,00002,408,448
15Feb 10, 2026 14:124,46822,118,7242,949,000983,0002,519,040