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 03:02zielajzielajScore: 3,327Success
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 03:023,15019,963,2532,772,00002,437,120
2Feb 21, 2026 02:583,31717,287,1562,919,00002,510,848
3Feb 21, 2026 02:583,31825,165,3121,947,000973,0002,441,216
4Feb 21, 2026 02:583,32716,475,6251,952,000976,0002,277,376
5Feb 21, 2026 03:023,46719,470,6542,034,0001,017,0002,424,832
6Feb 21, 2026 03:023,54916,236,9892,082,0001,041,0002,433,024