If a Prime Contractor goes bankrupt on a job, what is the fastest way for a subcontractor to get paid?

If a Prime Contractor goes bankrupt on a job, what is the fastest way for a subcontractor to get paid?