I created a program in java that searches for and finds primes numbers. It works very well but I want to have it look for much, much high numbers but my computer isn't all that great. I tried looking at google cloud and AWS but they seem like they're for apps/websites? I'm a bit confused and just wondering what would be best for this project.

  • Are you concerned that your program might run slowly, or what? How slow is too slow? – aparente001 May 13 '17 at 4:38
  • Please specify more criteria and describe more your needs and intentions. Also, finish your "much, much" thought. – Basil Bourque May 13 '17 at 8:51
  • Well I want to try and use it to find prime numbers that are thousands of digits long and in two days it got to around 1 quadrillion on my home computer so if I want to reach those numbers anytime soon I need more computing power or multiple machines running my program at the same time – Samantha Clark May 13 '17 at 14:05
  • @SamanthaClark Edit your Question to provide further info rather than post as comments. – Basil Bourque Jul 13 '17 at 15:11


Heroku was one of the first and best Java cloud providers. I believe the use Amazon AWS under-the-covers.


DigitalOcean is a cloud VM provider. They can instantly spin up a configured BSD (FreeBSD) or Linux virtual machine.

Simple pricing. Very cheap to get started, pay by the hour, less than a U.S. penny per hour.

Excellent documentation and many helpful articles including how to install Java on your VM.

They run their own hardware in multiple data centers. Apparently high quality including all flash-based storage.

  • Do you know where I could find information on how these sites work? Like would more CPU's mean they could do the math faster? OR would I have to find a way to split the program among different CPU's (like one looks for numbers between 1-100,000, another looks between 100,000-100,000,000) – Samantha Clark May 14 '17 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.