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 15:59vahookvahookScore: 3,506Success
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:003,45720,319,6611,014,0002,028,0002,498,560
2Feb 5, 2026 16:003,46025,765,1081,015,0002,030,0002,498,560
3Feb 5, 2026 16:003,46520,016,1101,016,0002,033,0002,281,472
4Feb 5, 2026 16:003,46720,681,8351,017,0002,034,0002,281,472
5Feb 5, 2026 16:003,48518,611,0611,022,0002,045,0002,498,560
6Feb 5, 2026 16:003,48926,212,2271,023,0002,047,0002,494,464
7Feb 5, 2026 15:593,49122,067,2871,024,0002,048,0002,502,656
8Feb 5, 2026 15:593,50617,357,9521,028,0002,057,0002,498,560
9Feb 5, 2026 16:003,50616,230,8331,028,0002,057,0002,498,560
10Feb 5, 2026 16:003,51322,424,6771,030,0002,061,0002,498,560
11Feb 5, 2026 15:593,51620,294,9501,031,0002,063,0002,494,464
12Feb 5, 2026 15:593,52218,591,2661,033,0002,066,0002,498,560
13Feb 5, 2026 15:593,52324,982,3061,033,0002,067,0002,494,464
14Feb 5, 2026 16:003,52516,548,7711,034,0002,068,0002,494,464
15Feb 5, 2026 15:593,52814,557,1671,035,0002,070,0002,273,280