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 listMar 15, 2026 23:13Dominique GarmierDominique GarmierScore: 38,374Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 23:1338,27258,713,82632,659,0001,020,0002,334,720
2Mar 15, 2026 23:1338,37464,746,19032,746,0001,023,0002,486,272
3Mar 15, 2026 23:1338,51364,245,25531,898,0001,993,0002,289,664