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 listFeb 5, 2026 16:44vahookvahookScore: 3,494Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 16:423,45319,962,5171,013,0002,026,0002,277,376
2Feb 5, 2026 16:423,46426,817,7361,016,0002,032,0002,490,368
3Feb 5, 2026 16:423,46717,037,9821,017,0002,034,0002,494,464
4Feb 5, 2026 16:443,46722,889,4351,017,0002,034,0002,281,472
5Feb 5, 2026 16:433,48826,684,6501,023,0002,046,0002,494,464
6Feb 5, 2026 16:423,48916,417,7791,023,0002,047,0002,490,368
7Feb 5, 2026 16:423,49423,969,6551,025,0002,050,0002,281,472
8Feb 5, 2026 16:423,49417,176,9941,025,0002,050,0002,494,464
9Feb 5, 2026 16:433,49820,577,7821,026,0002,052,0002,494,464
10Feb 5, 2026 16:423,50623,246,3921,028,0002,057,0002,277,376
11Feb 5, 2026 16:433,51121,272,4701,030,0002,060,0002,494,464
12Feb 5, 2026 16:443,51318,063,8461,030,0002,061,0002,498,560
13Feb 5, 2026 16:423,51819,151,9231,032,0002,064,0002,498,560
14Feb 5, 2026 16:443,52518,816,0661,034,0002,068,0002,498,560
15Feb 5, 2026 16:423,54922,149,0271,041,0002,082,0002,498,560