mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FactorDB

Reply
 
Thread Tools
Old 2017-04-22, 06:20   #1
dylanthinnes
 
Apr 2017

1 Posts
Default CORS headers for API request

Hello, I'm very new here (first post), I've run a few searches for info regarding the FactorsDB API and its usability, but haven't gotten much.

I've written a small art project that reduces a quotient to its prime factors to create a unique "solar system" for that number. The project itself, still in early stages, is available here for reference: http://solsys.me

I've considered using FactorDB for larger factoring operations after finding out it has an API, but unfortunately its CORS headers don't allow requests from other webpage domains. I can understand why this would be the case, to limit egregious use of the factorsdb from other webpages, but it is a limit to my project so I thought I might it a shot to ask here.

Is there any way by which to make API requests to FactorsDB from a different domain name? Could Syd potentially modify the CORS headers to allow cross-origin requests?

Furthermore, is there any central repository regarding documentation about the database?

Thanks

Last fiddled with by dylanthinnes on 2017-04-22 at 06:40
dylanthinnes is offline   Reply With Quote
Old 2017-04-24, 17:44   #2
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

719710 Posts
Default

For numbers less than 10-20 digits, Google or WolframAlpha or a variety of other simple software can do all the factorizations.

FactorDB is for numbers with a minimum size of 30-50 digits, and essentially any numbers of interest are at least 60-100 digits large, with the large majority of "interesting" numbers being more than 100 digits (up to several thousand digits).

Since I suspect you're not interested in solar systems with 10s of trillions of bodies (a 10 digit number), I'd suggest you use one of those other resources I just mentioned. In fact you can write a few hundred lines of python to factor numbers up to 10 digits with no problem in milliseconds (whereas optimized C programs can do it in microseconds or less).
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Request pinhodecarlos Lounge 3 2017-10-26 18:58
Bug/request Dubslow YAFU 4 2012-03-31 03:07
Odd request? Xyzzy Lounge 23 2011-03-08 17:50
GMP-ECM Request rogue GMP-ECM 4 2009-11-23 15:07
colum headers for usercomp_stats.txt delta_t Data 1 2004-01-02 01:04

All times are UTC. The time now is 15:56.

Thu Oct 22 15:56:07 UTC 2020 up 42 days, 13:07, 1 user, load averages: 6.86, 6.40, 3.97

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.