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 06:08Josu San MartinJosu San MartinScore: 37,464Success
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 06:0837,39361,162,85930,912,0001,994,0002,449,408
2Jan 17, 2026 06:0837,39468,066,05130,913,0001,994,0002,453,504
3Jan 17, 2026 06:0837,40858,409,80231,922,000997,0002,449,408
4Jan 17, 2026 06:0837,43959,596,26131,948,000998,0002,457,600
5Jan 17, 2026 06:0837,46459,576,95931,969,000999,0002,453,504
6Jan 17, 2026 06:0837,47360,913,56230,978,0001,998,0002,363,392
7Jan 17, 2026 06:0837,48954,584,41030,991,0001,999,0002,285,568
8Jan 17, 2026 06:0837,53852,187,52431,031,0002,002,0002,514,944
9Jan 17, 2026 06:0837,60257,966,84430,082,0003,008,0002,514,944