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 16, 2026 03:39Josu San MartinJosu San MartinScore: 54,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 03:3854,41173,639,04545,887,0001,995,0002,400,256
2Jan 16, 2026 03:3854,57370,661,26246,023,0002,001,0002,404,352
3Jan 16, 2026 03:3954,60572,180,07647,051,0001,001,0002,400,256
4Jan 16, 2026 03:3954,67674,809,53047,113,0001,002,0002,400,256
5Jan 16, 2026 03:3854,68177,093,50647,117,0001,002,0002,404,352
6Jan 16, 2026 03:3954,72370,692,13347,153,0001,003,0002,400,256