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 listJul 1, 2026 03:27Victor MerckléVictor MerckléScore: 5,261Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2026 03:305,13512,256,1044,519,00002,117,632stderr
2Jul 1, 2026 03:305,16112,303,4734,542,00002,117,632stderr
3Jul 1, 2026 03:305,25112,447,6064,621,00002,117,632stderr
4Jul 1, 2026 03:305,25312,624,8614,623,00002,117,632stderr
5Jul 1, 2026 03:305,26112,394,6484,630,00002,117,632stderr
6Jul 1, 2026 03:305,26912,636,0164,637,00002,117,632stderr
7Jul 1, 2026 03:305,27612,379,8864,643,00002,117,632stderr
8Jul 1, 2026 03:305,52112,861,8984,859,00002,117,632stderr
9Jul 1, 2026 03:305,61012,726,8164,937,00002,117,632stderr