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 16, 2026 00:45olliecrowolliecrowScore: 37,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 00:4537,37757,901,58229,902,0002,990,0002,416,640
2Apr 16, 2026 00:4537,39057,060,20130,909,0001,994,0002,453,504
3Apr 16, 2026 00:4537,45554,155,43229,964,0002,996,0002,310,144