The most popular and well-studied public-key encryption systems use factoring, but there are lots of other proposed schemes. The ability to quickly factor products of large primes would cause a temporary upset while alternative systems are brought in as replacements.