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:59Josu San MartinJosu San MartinScore: 35,998Success
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:5935,83957,269,72930,521,0001,017,0002,461,696
2Jan 17, 2026 06:5935,97457,045,17230,636,0001,021,0002,453,504
3Jan 17, 2026 06:5935,99054,786,26530,650,0001,021,0002,449,408
4Jan 17, 2026 06:5935,99860,651,14329,635,0002,043,0002,453,504
5Jan 17, 2026 06:5936,06157,442,21030,711,0001,023,0002,453,504
6Jan 17, 2026 06:5936,09361,721,83730,738,0001,024,0002,514,944