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 25, 2026 03:02olliecrowolliecrowScore: 12,752Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 03:0312,52132,320,1649,016,0002,003,0002,314,240stderr
2Apr 25, 2026 03:0312,55433,829,9608,035,0003,013,0002,306,048stderr
3Apr 25, 2026 03:0312,70527,423,4659,148,0002,033,0002,306,048stderr
4Apr 25, 2026 03:0312,72626,832,0639,163,0002,036,0002,568,192stderr
5Apr 25, 2026 03:0312,75226,817,2279,182,0002,040,0002,310,144stderr
6Apr 25, 2026 03:0312,82728,700,77710,262,0001,026,0002,564,096stderr
7Apr 25, 2026 03:0312,83126,604,99810,266,0001,026,0002,363,392stderr
8Apr 25, 2026 03:0312,83928,540,29410,272,0001,027,0002,404,352stderr
9Apr 25, 2026 03:0312,87631,047,1609,271,0002,060,0002,580,480stderr