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 listJan 17, 2026 05:58Josu San MartinJosu San MartinScore: 39,383Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:5839,23555,426,30533,512,0001,015,0002,453,504
2Jan 17, 2026 05:5839,24153,928,87934,532,00002,363,392
3Jan 17, 2026 05:5839,27456,245,05333,545,0001,016,0002,453,504
4Jan 17, 2026 05:5839,38357,130,28834,657,00002,449,408
5Jan 17, 2026 05:5839,39759,440,17733,650,0001,019,0002,445,312
6Jan 17, 2026 05:5839,50760,786,95334,766,00002,449,408