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 21, 2026 02:54zielajzielajScore: 3,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 21, 2026 02:533,13518,209,2822,759,00002,277,376
2Feb 21, 2026 02:533,15718,517,4882,778,00002,437,120
3Feb 21, 2026 02:563,29718,772,896967,0001,934,0002,277,376
4Feb 21, 2026 02:533,31418,982,5322,916,00002,510,848
5Feb 21, 2026 02:563,31820,399,1602,920,00002,424,832
6Feb 21, 2026 02:533,31923,483,7872,921,00002,433,024
7Feb 21, 2026 02:563,32423,916,9551,950,000975,0002,433,024
8Feb 21, 2026 02:533,32515,347,8421,951,000975,0002,433,024
9Feb 21, 2026 02:543,32523,402,0741,951,000975,0002,510,848
10Feb 21, 2026 02:533,47220,737,9522,037,0001,018,0002,428,928
11Feb 21, 2026 02:543,62519,035,8332,127,0001,063,0002,420,736
12Feb 21, 2026 02:543,79121,188,1683,336,00002,424,832