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 23, 2026 03:23olliecrowolliecrowScore: 178,798Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 03:24177,309178,396,696152,032,0004,000,0002,465,792stderr
2Apr 23, 2026 03:24178,040177,730,063153,663,0003,013,0002,457,600stderr
3Apr 23, 2026 03:24178,314174,060,946152,920,0003,997,0002,449,408stderr
4Apr 23, 2026 03:24178,615177,426,608153,178,0004,004,0002,453,504stderr
5Apr 23, 2026 03:24178,798171,557,181154,318,0003,025,0002,449,408stderr
6Apr 23, 2026 03:24178,918173,483,208154,440,0003,008,0002,457,600stderr
7Apr 23, 2026 03:24178,938172,196,076154,458,0003,008,0002,457,600stderr
8Apr 23, 2026 03:24178,968174,729,586155,486,0002,006,0002,338,816stderr
9Apr 23, 2026 03:24179,297179,262,127153,788,0003,994,0002,453,504stderr