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 listJan 10, 2025 01:03zielajzielajScore: 3,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 01:033,46719,635,1962,034,0001,017,0002,506,752
2Jan 10, 2025 01:033,49219,240,5592,049,0001,024,0002,285,568
3Jan 10, 2025 01:033,63220,582,0371,065,0002,131,0002,289,664