ScratchData LogoScratchData
Back to codingmaster3742's profile

Very Fast Factor Finder remix

COcodingmaster3742•Created December 15, 2017
Very Fast Factor Finder remix
0
0
3 views
View on Scratch

Instructions

Click the green flag and type the number you want factored. It will say "X has Y factors" when it's done. The factors will appear as pairs Ex: on 10 the second item will be 2 x 5. This makes the calculator faster so it only has to calculate up to the square root of a number. Try 60, 120, 240, 480, 960, etc.

Description

only one thing it does not say "Error" just says "X is a prime number" There is a bug with 2,not saying 2 is prime, and saying it has 4 factors, but perfectly shows 1 x 2 and 2 x 1 only. Tests: 1000 - 0.006 sec. 80000 - 0.011 sec. 10 million - 0.051 sec. some 14-digit number - about 100 sec. 20-digit number - about 75,000 seconds 10 billion - 1.65 sec. 13-digit number - 35 sec.

Project Details

Project ID193906556
CreatedDecember 15, 2017
Last ModifiedDecember 18, 2017
SharedDecember 15, 2017
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root