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 2, 2026 01:37olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein11.46CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:09027,063,53615,401,0001,288,0002,170,880expected "40081128474333 ", got "14610575229144 "
2Oct 5, 2026 21:09026,453,26414,925,0001,276,0002,129,920expected "40156153372386 ", got "14072377859407 "
3Oct 5, 2026 21:09027,150,81815,818,0001,296,0002,129,920expected "39996812830214 ", got "14173191265745 "
4Apr 2, 2026 01:3727,17848,236,09120,928,0002,989,0002,330,624
5Apr 2, 2026 01:3727,17847,652,21022,921,000996,0002,490,368
6Apr 2, 2026 01:3727,24554,159,26621,978,0001,998,0002,486,272