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 listApr 22, 2026 21:00Charles CabergsCharles CabergsScore: 24,832Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 21:0224,71035,923,48220,710,0001,035,0002,424,832
2Apr 22, 2026 21:0224,75439,885,59320,747,0001,037,0002,322,432
3Apr 22, 2026 21:0224,78041,667,65319,731,0002,076,0002,326,528
4Apr 22, 2026 21:0224,82840,695,53618,870,0002,979,0002,351,104
5Apr 22, 2026 21:0224,83239,259,32617,880,0003,973,0002,338,816
6Apr 22, 2026 21:0224,84535,859,08518,883,0002,981,0002,322,432
7Apr 22, 2026 21:0224,94341,211,71819,955,0001,995,0002,330,624
8Apr 22, 2026 21:0224,95941,483,62718,969,0002,995,0002,314,240
9Apr 22, 2026 21:0225,26939,120,06919,205,0003,032,0002,330,624