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 26, 2026 20:13Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:14057,480,07036,235,0001,006,0002,437,120expected "51379620664783 ", got "51381410688644 "
2Apr 26, 2026 20:14056,638,55434,953,0001,997,0002,420,736expected "51790249136397 ", got "51790279525150 "
3Apr 26, 2026 20:1441,97352,072,11434,941,0001,996,0002,330,624