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 listMay 7, 2024 10:08dpetruciidpetruciiScore: 7,380,508Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 10:087,361,6706,544,831,8886,478,269,42202,269,184
2May 7, 2024 10:087,380,5086,570,032,4616,494,847,02902,256,896
3May 7, 2024 10:087,401,1616,584,768,4346,513,021,55102,252,800