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 18:42Victor MerckléVictor MerckléScore: 4,790Success
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 18:444,67211,872,2894,112,00002,117,632stderr
2Jul 1, 2026 18:444,67311,907,1134,113,00002,117,632stderr
3Jul 1, 2026 18:444,67711,903,7484,116,00002,117,632stderr
4Jul 1, 2026 18:444,68512,139,6924,123,00002,117,632stderr
5Jul 1, 2026 18:444,79011,899,0014,216,00002,117,632stderr
6Jul 1, 2026 18:444,79311,924,5724,218,00002,117,632stderr
7Jul 1, 2026 18:444,80611,921,0584,230,00002,117,632stderr
8Jul 1, 2026 18:444,90412,057,3604,316,00002,117,632stderr
9Jul 1, 2026 18:445,20712,391,1114,583,00002,117,632stderr